You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
snabbdom/examples/carousel-svg
Shahar Dawn Or ad3745bfe8
style: single quotes (#526)
5 years ago
..
README.md docs: introduce remark and some readme tweaks 5 years ago
build.js chore: editorconfig + checker 5 years ago
index.html chore: editorconfig + checker 5 years ago
script.js style: single quotes (#526) 5 years ago

README.md

This carousel example uses style transform and transition to rotate a group of SVG triangles.

Also, the color of each triangle changes when you hover or click/tap it.

I built the build.js using npm and browserify.

In my local copy of the snabbdom project root I did these preparations:

npm install --save-dev babelify
npm install --save-dev babel-preset-es2015
echo '{ "presets": ["es2015"] }' > .babelrc

I then built like this:

browserify examples/carousel-svg/script.js -t babelify -o examples/carousel-svg/build.js

-- jk