Any URL's added here will be added as
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div class="circle-image"> <img src="http://gratisography.com/pictures/397_1.jpg"> </div> <!-- I used a pseudo element on container to avoid the CSS filter to affect all the element. Try different shapes, filters and effects on hover to catch attention! -->
@import "neat@2.*" @import "bourbon@5.*" .circle-image border-radius: 100% @include size(420px) overflow: hidden margin: auto position: relative cursor: pointer transition: all 250ms ease-in-out img border-radius: 100% @include size(280px) object-fit: cover position: absolute top: 50% left: 50% transform: translate(-50%, -50%) &::before content: '' display: block @include size(420px) background-image: url('http://gratisography.com/pictures/397_1.jpg') filter: hue-rotate(180deg) background-size: cover background-position: center &:hover filter: hue-rotate(180deg)
Also see: Tab Triggers