-
Notifications
You must be signed in to change notification settings - Fork 32
/
example.html
38 lines (36 loc) · 1.17 KB
/
example.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>React GIF Player</title>
<link rel="stylesheet" href="dist/gifplayer.css">
<style>
.demo {
margin: 2rem;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
</style>
</head>
<body>
<main class="demo">
<h1>React GIF Player</h1>
<div id="gif_player_container"></div>
<a href="http://giphy.com/gifs/black-and-white-vintage-SRdKHbWZs3KWQ">Source</a>
</main>
<!-- react/react-dom served over CDN -->
<script src="https://unpkg.com/[email protected]/umd/react.development.js"></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/prop-types/prop-types.js"></script>
<script src="dist/gifplayer.js"></script>
<script>
ReactDOM.render(
React.createElement(GifPlayer, {
gif: 'flip_the_frog.gif',
still: 'flip_the_frog.jpg'
}),
document.getElementById('gif_player_container')
);
</script>
</body>
</html>