Skip to content

Commit

Permalink
trying to make stackblitz work
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr Pancakes committed Sep 22, 2022
1 parent b71589d commit c6cd1e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ I like combining the web and game development, if you like what you see please d
<!-- ABOUT -->
## About The Project

This emoji slider demonstrates how to use Javascript to update an image with a HTML range slider.
This emoji slider demonstrates how to use Javascript to update an image with a HTML range slider. And also how to re-trigger a CSS animation that has already been animated.

<!-- PREREQUISITES -->
## Prerequisites
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"scripts": {
"dev": "http-server ./public/"
},
"stackblitz": {
"startCommand": "npm run dev"
},
"devDependencies": {
"http-server": "^14.1.1"
}
Expand Down
2 changes: 1 addition & 1 deletion public/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ slider.addEventListener("input", (event) => {
* re-paint and add the class back again
*/
slider_decale.classList.remove("bounce")
// forcing a re-paint can be done by many things, I just happend to go with focus
// forcing a re-paint can be done in many ways, I just happend to go with focus
slider_decale.focus()
slider_decale.classList.add("bounce")
})

0 comments on commit c6cd1e5

Please sign in to comment.