Skip to content

Instantly share code, notes, and snippets.

@jessycormier
Created July 9, 2018 11:20
Show Gist options
  • Save jessycormier/9aabb622af06d2fc019699fb55942855 to your computer and use it in GitHub Desktop.
Save jessycormier/9aabb622af06d2fc019699fb55942855 to your computer and use it in GitHub Desktop.
.grippy {
$grippy-spacing: 2px;
&::before,
&::after {
content: '....';
will-change: contents;
transition: all 180ms;
opacity: 0.0;
color: #aaa;
display: inline-block;
vertical-align: text-top;
line-height: 2px;
width:1px;
}
&::before { transform: translate(-$grippy-spacing, 0.25em) rotate(90deg); }
&::after { transform: translate( $grippy-spacing, 0.25em) rotate(90deg); }
&:hover::before, &:hover::after { opacity: 1;}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment