Javascript
How To Use Css View Transitions For Smooth Page And Element Animations
The View Transitions API animates between two states of a page, like a filter change or a navigation, with a smooth cross-fade by default. It replaces heavy JavaScript animation libraries.
How To Use Css Variables (Custom Properties) With Examples
CSS variables, also called custom properties, let you store a value once and reuse it everywhere. They are declared with two dashes and read with the var() function.
How To Add A Dark Mode Toggle With Localstorage In WordPress
Switch between light and dark themes with a data attribute and remember the choice with localStorage.
How To Register A Gutenberg Block With Plain Javascript In WordPress
You can register a simple block without a build step. Load the script in the editor with the enqueue_block_editor_assets hook and declare the WordPress packages as dependencies.
How To Create A Load More Posts Button With Ajax In WordPress
Load the next page of posts without reloading the page. This example requires the lotgrafixData object from the wp_localize_script() post.


