Day 1: JavaScript Challenge
In this lovely month, I would love to spend my meaningless life on something that’s meaningful. It’s 30 day JavaScript challenge.
This is the first challenge. It’s not tricky but lots of fun. Clone my repo if you are interested and here’s the demo.
It’s quite interesting because this is the first time I manipulate SVG image using JavaScript. I forget that SVG is just XML-based vector image and can be parsed into the DOM.
Here’s my simple boring JavaScript code…
Until today I have added event listener to click
, keyup
, keydown
,
submit
, and change
in my daily JavaScript code. Now, I know there are
lots of interesting events can be triggered in the browser. In my case,
they are animationend
and transitionend
.
Here’s CSS code that manipulates SVG image when certain character on keyboard typed.
I hope I can manage to finish the rest of the challenges. I am not sure, but tomorrow’s challenge is waiting…