A Pen by Mark Thomes on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="phone"> | |
<div class="content"> | |
<button type="button" class="cta"> | |
Call to action | |
<div class="circle"></div> | |
</button> | |
<div class="sheet"> | |
<div class="header"> | |
Some Info | |
</div> |
A Pen by Mark Thomes on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button type="button" class="cta"> | |
<span class="slide-part"> | |
<span class="label">Add to cart</span> | |
</span> | |
<span class="slide-part"> | |
<span class="label">1 in cart</span> | |
<span class="icon"> | |
<svg viewBox="0 0 32 27" height="27"> | |
<rect x="4" y="4" width="24" height="19" fill="transparent" stroke="white" stroke-width="3" /> | |
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Console Log": { | |
"prefix": "cl", | |
"body": [ | |
"console.log($0);", | |
], | |
"description": "Adds a nice console log statement quicky with just 'log'." | |
}, | |
"Usage Block": { | |
"prefix": "usage", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
/* Standard Curves */ | |
--LINEAR : cubic-bezier(0.250, 0.250, 0.750, 0.750); | |
--EASE : cubic-bezier(0.250, 0.100, 0.250, 1.000); | |
--EASE_IN : cubic-bezier(0.420, 0.000, 1.000, 1.000); | |
--EASE_OUT : cubic-bezier(0.000, 0.000, 0.580, 1.000); | |
--EASE_IN_OUT : cubic-bezier(0.420, 0.000, 0.580, 1.000); | |
/* Ease IN curves */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ease = { | |
linear: 'cubic-bezier(0.250, 0.250, 0.750, 0.750)', | |
ease: 'cubic-bezier(0.250, 0.100, 0.250, 1.000)', | |
in: 'cubic-bezier(0.420, 0.000, 1.000, 1.000)', | |
out: 'cubic-bezier(0.000, 0.000, 0.580, 1.000)', | |
inOut: 'cubic-bezier(0.420, 0.000, 0.580, 1.000)', | |
inQuad: 'cubic-bezier(0.550, 0.085, 0.680, 0.530)', | |
inCubic: 'cubic-bezier(0.550, 0.055, 0.675, 0.190)', | |
inQuart: 'cubic-bezier(0.895, 0.030, 0.685, 0.220)', | |
inQuint: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LINEAR: cubic-bezier(0.250, 0.250, 0.750, 0.750); | |
$EASE: cubic-bezier(0.250, 0.100, 0.250, 1.000); | |
$EASE_IN: cubic-bezier(0.420, 0.000, 1.000, 1.000); | |
$EASE_OUT: cubic-bezier(0.000, 0.000, 0.580, 1.000); | |
$EASE_IN_OUT: cubic-bezier(0.420, 0.000, 0.580, 1.000); | |
$EASE_IN_QUAD: cubic-bezier(0.550, 0.085, 0.680, 0.530); | |
$EASE_IN_CUBIC: cubic-bezier(0.550, 0.055, 0.675, 0.190); | |
$EASE_IN_QUART: cubic-bezier(0.895, 0.030, 0.685, 0.220); | |
$EASE_IN_QUINT: cubic-bezier(0.755, 0.050, 0.855, 0.060); |