Skip to content

Instantly share code, notes, and snippets.

@vianhanif
Created September 22, 2016 14:00
Show Gist options
  • Save vianhanif/9a03b2561a5af68ba541b5a85eb73399 to your computer and use it in GitHub Desktop.
Save vianhanif/9a03b2561a5af68ba541b5a85eb73399 to your computer and use it in GitHub Desktop.
image scale transitions
.article-heading{
background-position: center !important;
background-repeat: no-repeat !important;
background-size: cover !important;
height: $article-panel-height; // ex: 100px
transition: all .3s ease-in-out;
&:hover{
transform: scale(1.2);
}
}
.img-overflow{
overflow: hidden;
}
<div class="img-overflow">
<div class="article-heading" style="background: url('background.png')"></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment