css3 - CSS Transition with Border Radius and Linear Gradient -


given codepen https://codepen.io/scottmgerstl/pen/mpmeby image layout in question

<span class="profile-pic-wrapper">     <a href="https://www.google.com" target="_blank">         <img class="profile-pic" src="http://i-cdn.phonearena.com/images/article/67689-image/video-shows-super-mario-64-hd-playing-on-the-apple-iphone-6.jpg"/>         <span class="profile-pic-overlay">             <span class="social-icon">view profile</span>         </span>      </a> </span> 

description

i trying use css transition on linear gradient (profile-pic-overlay) clipped border radius (profile-pic-wrapper). desired behavior have profile image when, rounded image container hovered over, linear gradient fades view indicating can view profile.

the issue

the gradient not honor bounds of border radius. tried this answer when that, linear gradient not transition. @keyframe animation doesn't either.

any ideas?

edit

this appears issue chrome on windows

as far can test problem related <a> container of gradient layer. searching how solve issue here properties can add cover browsers:

will-change & transform:translate3d

add code:

.profile-pic-wrapper, .profile-pic-wrapper {   display:block;   -webkit-transform:translate3d(0,0,0);   transform:translate3d(0,0,0);   will-change:transform; } 

codepen demo


note: info adapted this answer, want post here answer suit case beacuse need on tag , parent tag, if want can close dup.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -