UNPKG

552 BMarkdownView Raw
1This carousel example uses `style transform` and `transition` to rotate a group of SVG triangles.
2
3Also, the color of each triangle changes when you hover or click/tap it.
4
5I built the build.js using npm and browserify.
6
7In my local copy of the snabbdom project root I did these preparations:
8```
9npm install --save-dev babelify
10npm install --save-dev babel-preset-es2015
11echo '{ "presets": ["es2015"] }' > .babelrc
12```
13
14I then built like this:
15```
16browserify examples/carousel-svg/script.js -t babelify -o examples/carousel-svg/build.js
17```
18
19-- *jk*