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