[CSS - Snippet] Smooth anchors (links)

1 post Page 1 of 1
Contributors
Filip
Coding Guru
Coding Guru
Posts: 833
Joined: Wed Jan 05, 2011 3:59 pm

Hello,

Another snippet for today's challenge. This will add smooth transitions to links on your HTML pages when they are hovered:
Code: Select all

a { 
	color: #0026FF; 
	text-decoration: none;
	opacity: 1;
	transition: opacity .25s ease-in-out;
	-moz-transition: opacity .25s ease-in-out;
	-webkit-transition: opacity .25s ease-in-out;
}
a:hover { opacity: 0.5; }
CodenStuff wrote:
Nope, it's just your sick and dirty mind. You sick twisted warped little pervo :D
1 post Page 1 of 1
Return to “Tutorials”