snipt

Ctrl+h for KB shortcuts

CoffeeScript

Framer Slo-Mo

Framer.Loop.delta = Framer.Loop.delta / 10
https://snipt.net/embed/247ad4595643e5b8b1f35f133afb07d4/
https://snipt.net/raw/247ad4595643e5b8b1f35f133afb07d4/
247ad4595643e5b8b1f35f133afb07d4
coffee-script
CoffeeScript
1
2016-09-25T14:09:44
True
False
False
Jan 15, 2016 at 08:19 PM
/api/public/snipt/143604/
framer-slo-mo
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="nv">Framer.Loop.delta = </span><span class="nx">Framer</span><span class="p">.</span><span class="nx">Loop</span><span class="p">.</span><span class="nx">delta</span> <span class="o">/</span> <span class="mi">10</span> </span></pre></div> </td></tr></table>
framer

CoffeeScript

Material Easing

1
2
3
4
5
# Material Design Curves
fastInSlowOut = [0.4, 0, 0.2, 1]
fastInRealSlowOut = [0.4, 0, 0, 1]
linearInSlowOut = [0, 0, 0.2, 1]
fastInLinearOut = [0.4, 0, 1, 1]
https://snipt.net/embed/27bdad26f9e24775bee1c55dc230f784/
https://snipt.net/raw/27bdad26f9e24775bee1c55dc230f784/
27bdad26f9e24775bee1c55dc230f784
coffee-script
CoffeeScript
5
2016-09-23T20:37:00
True
False
False
Dec 22, 2015 at 06:33 PM
/api/public/snipt/143254/
material-easing
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c1"># Material Design Curves</span> </span><span id="L-2"><a name="L-2"></a><span class="nv">fastInSlowOut = </span><span class="p">[</span><span class="mf">0.4</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mf">0.2</span><span class="p">,</span> <span class="mi">1</span><span class="p">]</span> </span><span id="L-3"><a name="L-3"></a><span class="nv">fastInRealSlowOut = </span><span class="p">[</span><span class="mf">0.4</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">]</span> </span><span id="L-4"><a name="L-4"></a><span class="nv">linearInSlowOut = </span><span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mf">0.2</span><span class="p">,</span> <span class="mi">1</span><span class="p">]</span> </span><span id="L-5"><a name="L-5"></a><span class="nv">fastInLinearOut = </span><span class="p">[</span><span class="mf">0.4</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">]</span> </span></pre></div> </td></tr></table>
framer

CoffeeScript

Force Framer to Load images

1
2
3
4
5
6
7
# FORCE THE LOADING OF ALL THE IMAGES IN THE BACKGROUND
sectionArray = [generateAlbum, shareReflection, editReflection, photoVideo, actions, gallery, re, capture, pairing, settings, shotlist]

for section in sectionArray
	section.sendToBack()
	section.opacity = 0
	section.visible = true
https://snipt.net/embed/c6230d7beeaa30845b54e5e8d1ea6cc2/
https://snipt.net/raw/c6230d7beeaa30845b54e5e8d1ea6cc2/
c6230d7beeaa30845b54e5e8d1ea6cc2
coffee-script
CoffeeScript
7
2016-09-26T13:04:36
True
False
False
Sep 21, 2015 at 12:01 PM
/api/public/snipt/141164/
force-framer-to-load-images
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c1"># FORCE THE LOADING OF ALL THE IMAGES IN THE BACKGROUND</span> </span><span id="L-2"><a name="L-2"></a><span class="nv">sectionArray = </span><span class="p">[</span><span class="nx">generateAlbum</span><span class="p">,</span> <span class="nx">shareReflection</span><span class="p">,</span> <span class="nx">editReflection</span><span class="p">,</span> <span class="nx">photoVideo</span><span class="p">,</span> <span class="nx">actions</span><span class="p">,</span> <span class="nx">gallery</span><span class="p">,</span> <span class="nx">re</span><span class="p">,</span> <span class="nx">capture</span><span class="p">,</span> <span class="nx">pairing</span><span class="p">,</span> <span class="nx">settings</span><span class="p">,</span> <span class="nx">shotlist</span><span class="p">]</span> </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="k">for</span> <span class="nx">section</span> <span class="k">in</span> <span class="nx">sectionArray</span> </span><span id="L-5"><a name="L-5"></a> <span class="nx">section</span><span class="p">.</span><span class="nx">sendToBack</span><span class="p">()</span> </span><span id="L-6"><a name="L-6"></a> <span class="nv">section.opacity = </span><span class="mi">0</span> </span><span id="L-7"><a name="L-7"></a> <span class="nv">section.visible = </span><span class="kc">true</span> </span></pre></div> </td></tr></table>
framer
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.