Skip to content

Instantly share code, notes, and snippets.

View mthomes's full-sized avatar
💭

Mark Thomes mthomes

💭
View GitHub Profile
@mthomes
mthomes / index.html
Created August 27, 2020 19:03
XWdRavX
<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>
@mthomes
mthomes / index.html
Created August 27, 2020 19:02
oNxWdEz
<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>
@mthomes
mthomes / typescript.json
Created March 23, 2018 14:52
typescript-snippets
{
"Console Log": {
"prefix": "cl",
"body": [
"console.log($0);",
],
"description": "Adds a nice console log statement quicky with just 'log'."
},
"Usage Block": {
"prefix": "usage",
@mthomes
mthomes / _easings.css
Last active October 10, 2024 16:28
Cubic bezier presets and variables
: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 */
@mthomes
mthomes / Easings Object
Last active January 16, 2017 20:27
Easing object for quick access to common easing curves
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)',
@mthomes
mthomes / _easings.scss
Last active April 19, 2020 10:47
Cubic bezier presets and variables
$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);