CSS Quick Tip: Animating in a newly added element | Stephanie Eckles
I can see myself almost certainly needing to use this clever technique at some point so I’m going to squirrel it away now for future me.
A fun little JavaScript library for folding the DOM like paper. The annotated source is really nicely documented.
I can see myself almost certainly needing to use this clever technique at some point so I’m going to squirrel it away now for future me.
This is very handy indeed! Quick one-line JavaScript helpers categorised by type.
And, no, you don’t need to npm install
any of these. Try “vendoring” them instead (that’s copying and pasting to you and me).
I decided to implement almost all of the UI by just adding & removing CSS classes, and using CSS transitions if I want to animate a transition.
Yup. It’s remarkable how much can be accomplished with that one DOM scripting pattern.
I was pretty surprised by how much I could get done with just plain JS. I ended up writing about 50 lines of JS to do everything I wanted to do.
This is a great way to organise code snippets—listed by use case, and searchable too!
Next time you’re stuck on some DOM scripting, before reaching for a framework or library, check here first.
I’m constantly forgetting the difference between the async
attribute and the defer
attribute on script
elements—this is a handy explanation.
DOM scripting and event handling.
Don’t touch that DOM.
Here’s a little thing I learned.
Hijax, Youjax, we all jax for Pjax.