Modeling complex JavaScript object collections in memory
A deep dive into a fairly flexible implementation, inspired by Rails' ActiveRecord, for modeling JavaScript object collections in memory.
30 seconds of code contains a curated collection of code articles covering a wide range of development needs. The collection spans many topics, ranging from simple coding problems to theoretical concepts and development techniques.
A deep dive into a fairly flexible implementation, inspired by Rails' ActiveRecord, for modeling JavaScript object collections in memory.
Keyboard input on mobile devices is hard to get right. Here's how to ensure the right keyboard is displayed for each input.
Given two pairs of latitude and longitude coordinates, you can calculate the distance between them using the Haversine formula. Let's find out how.
Display a menu overlay when the user hovers over an image.
Learn how you can create a card that displays additional content on hover.
Create a progress bar indicating the scroll percentage of the page, using CSS and JavaScript.
Zoom in and rotate your images on hover and make them stand out.
Learn how to display an image overlay effect on hover using CSS.
Create a custom hover and focus effect for navigation items, using CSS transformations.
Create an animated shadow box around the text when it is hovered.
Customize the scrollbar style for elements with scrollable overflow, using just CSS.
Make the text appear engraved or embossed into the background, using CSS.
Create the most whimsical link hover effect with a squiggle animation.
Learn how to create customized and animated checkboxes and radio buttons with CSS.
Cutout effects seem tricky to implement, but they really aren't. CSS has you covered!
Ever wondered how those alternating text animations work? Here's a simple way to create one using CSS and JavaScript.
Create cards with hover effects, such as rotating, shifting and perspective transforms.
Learn how to create an isometric card using CSS.
Modern CSS can help you create gradient text with a few lines of code. Learn how today!
Having trouble loading an image? Display a fallback message instead!
Learn how to create an image with a text overlay using CSS.
Did you know you can differentiate an element's styles when it's in fullscreen mode? Learn how to do it with this code snippet!
Learn how to hide scrollbars on an element, while still allowing it to be scrollable.
Create a typewriter effect animation with CSS variables and just a sprinkle of JavaScript.