forked from karanmhatre1/barba-page-transition-example
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·76 lines (56 loc) · 2.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title>Barba JS Page transition</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Pretty Fonts -->
<link href="https://fonts.googleapis.com/css?family=Lato&display=swap" rel="stylesheet">
<!-- CSS Defaults -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/default.css">
<!-- Main CSS file -->
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="loading-container">
<div class="loading-screen">
</div>
</div>
<header>
<nav class="main-navigation">
<ul>
<li><a href="index.html">home</a></li>
<li><a href="about.html">about</a></li>
</ul>
</nav>
</header>
<!-- Better to wrap barba container as close as possible -->
<div data-barba="wrapper">
<!-- Only this section changes on link navigation -->
<main data-barba="container" data-barba-namespace="home">
<div class="heading-container">
<h1 class="main-heading is-animated">This is<br><span class="green-heading-bg">the home</span><br>screen.<br></h1>
<img src="img/hand-square-trans.png" class="main-img is-animated">
</div>
</main>
</div>
<footer>
<ul>
<li><a href="http://karanmhatre.com">Karan Mhatre</a></li>
<li>•</li>
<li><a href="https://github.com/karanmhatre1/barba-page-transition-example" target="_blank">Find on Github</a></li>
</ul>
</footer>
</body>
<!-- JQuery -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<!-- Barba Core -->
<script src="https://unpkg.com/@barba/core"></script>
<!-- GSAP for animation -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.2.4/gsap.min.js"></script>
<!-- Some basic helper functions -->
<script src="js/helper.js"></script>
<!-- Main JS file -->
<script src="js/main.js"></script>
</html>