Skip to content

Commit

Permalink
added babel and gsap cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
faahim committed May 20, 2018
1 parent 4e1b464 commit 1e707d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@
</head>

<body>
<h1 id="hbd">Happy Birthday to you!!! :)</h1>
<div class="container">
<h1 id="hbd">Hey!</h1>
</div>
</body>

<script type="text/javascript" src="script/main.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script>
<script type="text/babel" src="script/main.js"></script>

</html>
5 changes: 5 additions & 0 deletions script/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const tl = new TimelineMax()

tl.from('#hbd', 0.3, {
y: 700,
})

0 comments on commit 1e707d7

Please sign in to comment.