Skip to content

Instantly share code, notes, and snippets.

@Kvaibhav01
Created July 10, 2018 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kvaibhav01/781f20285254bd0743e61a01a687acff to your computer and use it in GitHub Desktop.
Save Kvaibhav01/781f20285254bd0743e61a01a687acff to your computer and use it in GitHub Desktop.
HTML file without Anime.JS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>AnimeJS Demo</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<button id="cta">Click Me</button>
<!-- SVG code for design made with Adobe Illustrator -->
<svg viewBox="0 0 215 110">
<polygon class="polymorph" points="215,110 0,110 0,0 49.3,0 215,0" />
</svg>
<div id="blip">
<h1>Woosh! That morphed!</h1>
<p>Isn't it cool? Here's a little more text to know that what AnimeJS can do to your webpage.</p>
<p>Get this awesome JavaScript library <a href="http://animejs.com/" target="_blank" style="text-decoration: none">here</a></p>
<button id="cta2">Go Back</button>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment