Add vanilla tilt animation on introduction image

This commit is contained in:
wswidzinski 2018-01-13 16:45:44 +01:00
parent 249648a281
commit 5d0197c3d7
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@
class="introduction__header"
}}
<div class="introduction__img">
<div class="introduction__img" data-tilt data-tilt-max="50" data-tilt-speed="400" data-tilt-perspective="400">
{{svg 'images/introduction.svg' }}
<div class="introduction__counter">

View File

@ -1,4 +1,5 @@
import 'babel-polyfill';
import 'vanilla-tilt';
import nav from './nav';
document.addEventListener('DOMContentLoaded', () => {