superject/web/index.html

53 lines
1,001 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>superject</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<canvas id="canvas-image" width = "1000" height = "1000"></canvas>
<script src="scripts/granim.min.js"></script>
<script>
var granimInstance = new Granim({
element: '#canvas-image',
name: 'anima',
direction: 'radial',
isPausedWhenNotInView: true,
elToSetClassOn: 'body',
opacity: [1, 1],
image : {
source: 'img/prehension.png',
blendingMode: 'hue',
stretchMode: ['stretch', 'stretch'],
position: ['center', 'center']
},
states : {
"default-state": {
gradients: [
['#834D9B', '#D04ED6'],
['#1CD8D2', '#93EDC7']
],
transitionSpeed: 23*1000
}}});
</script>
<style>
#canvas-image {
position: absolute;
display: block;
width: 100%;
height: 100%;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
</style>
</head>
<body>
<canvas id="canvas-image"></canvas>
</body>
</html>