Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
benhatsor committed Oct 14, 2020
1 parent 38b320e commit cdafb80
Showing 1 changed file with 89 additions and 41 deletions.
130 changes: 89 additions & 41 deletions index.html
Expand Up @@ -5,60 +5,119 @@
<title>Filmstrip</title>
<meta charset="utf-8">
<link rel="icon" href="/icon.svg">
<meta name="description" content="Quick and easy animator for the modern web.">
<meta name="description" content="Animation for the modern web.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">

<meta name="theme-color" content="#2a2a2e">
<meta name="robots" content="index, follow">
<meta property="og:locale" content="en_US">
<meta property="og:title" content="Filmstrip">
<meta property="og:description" content="Quick and easy animator for the modern web.">
<meta property="og:description" content="Animation for the modern web.">
<meta property="og:url" content="https://filmstrip.netlify.app">
<meta property="og:type" content="website">
<meta name="next-head-count" content="24">
<script async="" src="//www.google-analytics.com/analytics.js"></script>
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-72177072-1', 'auto');
ga('send', 'pageview');</script>
<script src="//www.google-analytics.com/analytics.js"></script>
</head>
<body>
<div class="main">
<div class="title-wrapper">
<div class="top">
<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 0 24 24" width="50">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z" fill="currentColor"></path>
</svg>
Filmstrip
</div>
<p>Animation for the modern web</p>
<hr>
<div class="buttons">
<div class="button" onclick="deleteAnimation();document.querySelector('.main').classList.add('hidden')">
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" fill="currentColor"></path>
</svg>
Create a new animation
</div>
<div class="button second" onclick="document.querySelector('.title-wrapper').classList.add('hidden');document.querySelector('.upload-wrapper').classList.remove('hidden')">
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" fill="currentColor"></path>
</svg>
Import an existing one
</div>
</div>
</div>
<div class="upload-wrapper hidden">
<div class="top">
<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 0 24 24" width="50">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z" fill="currentColor"></path>
</svg>
Filmstrip
</div>
<hr style="margin-bottom: 0">
<p>Paste a CSS animation below</p><span class="code" contenteditable=""></span>
<div class="buttons">
<div class="button second" onclick="document.querySelector('.upload-wrapper').classList.add('hidden');document.querySelector('.title-wrapper').classList.remove('hidden')">Back</div>
<div class="button" onclick="importAnimation()">Import</div>
</div>
</div>
</div>

<div class="header">
<div class="option menu" onclick="this.classList.toggle('open')">
<svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 0 24 24" width="30"><path d="M0 0h24v24H0z" fill="none"></path><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" fill="currentColor"></path></svg>
<svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 0 24 24" width="30">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" fill="currentColor"></path>
</svg>
<div class="button save" title="Save">
<svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 0 24 24" width="30"><path d="M0 0h24v24H0z" fill="none"></path><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" fill="currentColor"></path></svg>
<svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 0 24 24" width="30">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" fill="currentColor"></path>
</svg>
</div>
<div class="button new" title="New">
<svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 0 24 24" width="30"><path d="M0 0h24v24H0z" fill="none"></path><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z" fill="currentColor"></path></svg>
<svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 0 24 24" width="30">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z" fill="currentColor"></path>
</svg>
</div>
<div class="button exit" title="Exit" onclick="window.close()">
<svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 0 24 24" width="30"><path d="M0 0h24v24H0z" fill="none"></path><path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="currentColor"></path></svg>
<div class="button exit" title="Exit" onclick="document.querySelector('.main').classList.remove('hidden')">
<svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 0 24 24" width="30">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="currentColor"></path>
</svg>
</div>
</div>
<div class="logo">
<span role="textbox" contenteditable="" spellcheck="false" onclick="select(this)" oninput="settings.name = this.innerHTML">Untitled Animation</span>
<svg xmlns="http://www.w3.org/2000/svg" height="17" viewBox="0 0 24 24" width="17" onclick="select(document.querySelector('.logo span'))"><path d="M0 0h24v24H0z" fill="none"></path><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z" fill="currentColor"></path></svg>
<svg xmlns="http://www.w3.org/2000/svg" height="17" viewBox="0 0 24 24" width="17" onclick="select(document.querySelector('.logo span'))">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z" fill="currentColor"></path>
</svg>
</div>
<div class="right"><div class="option play">
<label>
<span></span>
</label>
</div><div class="option remove">
<svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 0 24 24" width="30"><path d="M0 0h24v24H0z" fill="none"></path><path d="M19 13H5v-2h14v2z" fill="currentColor"></path></svg>
</div><div class="option add">
<svg xmlns="http://www.w3.org/2000/svg" height="34" viewBox="0 0 24 24" width="34"><path d="M0 0h24v24H0z" fill="none"></path><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" fill="currentColor"></path></svg>
</div></div>
</div>
<div class="sidebar">
<div class="frame open">
<div class="frame-wrapper">
<div class="frame-el"></div>
<div class="right">
<div class="option play">
<label>
<span></span>
</label>
</div>
<div class="option remove">
<svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 0 24 24" width="30">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M19 13H5v-2h14v2z" fill="currentColor"></path>
</svg>
</div>
<div class="option add">
<svg xmlns="http://www.w3.org/2000/svg" height="34" viewBox="0 0 24 24" width="34">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" fill="currentColor"></path>
</svg>
</div>
</div>
</div>
<div class="sidebar">
<!--<div class="settings" onclick="this.classList.toggle('open')"><svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 0 24 24" width="30"><path d="M0,0h24v24H0V0z" fill="none"></path><path d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" fill="currentColor"></path></svg></div>-->
</div>
<div class="canvas">
Expand All @@ -68,18 +127,7 @@
</div>
<div class="prompt-wrapper">
<div class="background" onclick="this.parentElement.classList.toggle('open')"></div>
<div class="prompt">
<div class="title">
<p>Export</p>
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24" class="close" onclick="document.querySelector('.prompt-wrapper').classList.toggle('open')"><path d="M0 0h24v24H0z" fill="none"></path><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" fill="currentColor"></path></svg>
</div>
<a>Place this code somewhere in your website for a fully fledged animation.</a>
<br>
<span>HTML (or any element with class <span class="code name" style="padding: 2px">---</span>)</span>
<div class="code" onclick="copy(this.innerText);this.children[0].style.color='#70db91'"><svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 0 24 24" width="20" class="copy"><path d="M0 0h24v24H0z" fill="none"></path><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" fill="currentColor"></path></svg>&lt;div class="<span class="name">---</span>"&gt;&lt;/div&gt;</div>
<span>CSS</span>
<div class="code export" onclick="copy(this.innerText);this.children[0].style.color='#70db91'"><svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 0 24 24" width="20" class="copy"><path d="M0 0h24v24H0z" fill="none"></path><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" fill="currentColor"></path></svg></div>
</div>
<div class="prompt"></div>
</div>
<script src="main.js"></script>
</body>
Expand Down

0 comments on commit cdafb80

Please sign in to comment.