html - Ease in ease out on background image hover -
i'm having issues getting background image hover ease in , out effect on bordered link , honest don't know 1 use. image either moves transition or nothing @ all. great. thanks!
http://codepen.io/anon/pen/zgewxe
.cta { margin: 0; padding: 1.4em 0 1.4em 0; cursor:pointer; display:block; text-align:center; width:100%; font-size: 2.3em !important; color:#fff !important; font-weight: 700; font-style: italic; text-transform: uppercase; border: 0; background-image: url(http://i.imgur.com/balv0x5.jpg); background-repeat:no-repeat; background-position:center center;} .cta:hover { text-decoration:none; border: 0; opacity:0.8; } a.cta {border-bottom: none !important; text-decoration: none;} .cta span {border: #fff 3px solid; padding: 0.3em;} .cta span:hover {background-image: url(http://i.imgur.com/mrbbt4f.jpg); background-repeat:no-repeat; background-position:center center; } <a class="cta" href="learn-more" title="understand data today!"> <p><span>understand data today!</span></p> </a>
transitions don't work background-images unfortunately. can check css specs - can background colors not images. you'll have try solution using images , jquery.
Comments
Post a Comment