<a class="Button35 blueGradient" href="#"><div class="reflect"></div>Button 35</a> /*-- Button 35 --*/ .Button35{ padding: 4px 43px; cursor: pointer; display: inline-block; color: #000000; font-size: 1.2em; font-family: Calibri, Arial, sans-serif; background: #eee; border-radius: 6px; line-height: 2em; border: 1px solid #bbb; text-decoration: none; -webkit-transition: all 0.3s linear; -moz-transition: all 0.3s linear; -o-transition: all 0.3s linear; transition: all 0.3s linear; font-weight: bold; } .blueGradient{ /* Gradients created at http://www.colorzilla.com/gradient-editor/ */ background: rgb(135,224,253); /* Old browsers */ background: -moz-linear-gradient(top, rgba(135,224,253,1) 0%, rgba(83,203,241,1) 40%, rgba(5,171,224,1) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(135,224,253,1)), color-stop(40%,rgba(83,203,241,1)), color-stop(100%,rgba(5,171,224,1))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(135,224,253,1) 0%,rgba(83,203,241,1) 40%,rgba(5,171,224,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(135,224,253,1) 0%,rgba(83,203,241,1) 40%,rgba(5,171,224,1) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(135,224,253,1) 0%,rgba(83,203,241,1) 40%,rgba(5,171,224,1) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(135,224,253,1) 0%,rgba(83,203,241,1) 40%,rgba(5,171,224,1) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#87e0fd', endColorstr='#05abe0',GradientType=0 ); /* IE6-9 */ } .Button35:hover { -webkit-box-shadow: rgba(0,0,0,0.7) 0px 5px 5px, inset rgba(0,0,0,0.15) 0px -10px 20px; -moz-box-shadow: rgba(0,0,0,0.7) 0px 5px 5px, inset rgba(0,0,0,0.15) 0px -10px 20px; -o-box-shadow: rgba(0,0,0,0.7) 0px 5px 5px, inset rgba(0,0,0,0.15) 0px -10px 20px; box-shadow: rgba(0,0,0,0.7) 0px 5px 5px, inset rgba(0,0,0,0.15) 0px -10px 20px; color: white; text-shadow: 1px 1px 1px #000; } .reflect { display: block; position: relative; /* Gradients created at http://www.colorzilla.com/gradient-editor/ */ background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(50%,rgba(255,255,255,0.9)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0) 100%); /* IE10+ */ background: linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#00ffffff',GradientType=1 ); /* IE6-9 */ padding: 1px 9px; top: -16px; left: -53px; height: 0px; } .Button35:hover .reflect { padding:1px 5px; -webkit-animation-name: reflection; -webkit-animation-duration: 0.6s; -webkit-animation-timing-function: linear; -moz-animation-name: reflection; -moz-animation-duration: 0.6s; -moz-animation-timing-function: linear; -o-animation-name: reflection; -o-animation-duration: 0.6s; -o-animation-timing-function: linear; -webkit-animation-name: reflection; -webkit-animation-duration: 0.6s; -webkit-animation-timing-function: linear; left:45px; } @-webkit-keyframes reflection { 0% { top: -15px; left: -48px; } 10% { top: -5px; } 20% { top: 5px; } 30% { top: 15px; } 40% { top: 25px; } 50% { top: 35px; } 60% { top: 25px; } 70% { top: 15px; } 80% { top: 5px; } 90% { top: -5px; } 100% { top:-15px; left:45px; -webkit-transform: rotate(-360deg); } } @-moz-keyframes reflection { 0% { top: -15px; left: -48px; } 10% { top: -5px; } 20% { top: 5px; } 30% { top: 15px; } 40% { top: 25px; } 50% { top: 35px; } 60% { top: 25px; } 70% { top: 15px; } 80% { top: 5px; } 90% { top: -5px; } 100% { top:-15px; left:45px; -moz-transform: rotate(-360deg); } } @-o-keyframes reflection { 0% { top: -15px; left: -48px; } 10% { top: -5px; } 20% { top: 5px; } 30% { top: 15px; } 40% { top: 25px; } 50% { top: 35px; } 60% { top: 25px; } 70% { top: 15px; } 80% { top: 5px; } 90% { top: -5px; } 100% { top:-15px; left:45px; -o-transform: rotate(-360deg); } } @-keyframes reflection { 0% { top: -15px; left: -48px; } 10% { top: -5px; } 20% { top: 5px; } 30% { top: 15px; } 40% { top: 25px; } 50% { top: 35px; } 60% { top: 25px; } 70% { top: 15px; } 80% { top: 5px; } 90% { top: -5px; } 100% { top:-15px; left:45px; transform: rotate(-360deg); } }