Navigation list item hover & focus effect
Create a custom hover and focus effect for navigation items, using CSS transformations.
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.
Create a custom hover and focus effect for navigation items, using CSS transformations.
Add some life to your buttons with these simple CSS transitions.
SEO is a very relevant topics that most developers are inexperienced in. Here are 4 actionable SEO tips you can implement today.
Get the name of the weekday from a JavaScript Date
object.
Create a generator that walks through all the keys of a given object.
Check the properties of an object against an array of keys or another object to ensure they match.
Learn how to replicate the behavior of Array.prototype.map()
for strings.
Map the values of an array to an object, using the given mapping functions.
Detect and handle click events outside of a specific element in just a few lines of JavaScript.
Learn how to create a generator function that repeats a given value or an array of values indefinitely.
Learn how to convert a number to an array of digits, removing its sign if necessary.
Determine the day, week, month, or quarter of the year that a date corresponds to, using vanilla JavaScript.
Quickly determine if a collection of values is empty in JavaScript.
Turns out the Proxy object is not extensible, but there's a way around its limitations.
Use the binary search algorithm to find the index of a given element in a sorted array.
Create an array of n
-tuples of consecutive elements from a given array.
Checking if an array includes a specific value is pretty straightforward, except when it comes to objects.
Create arrays of numbers in arithmetic and geometric progression.
Use the Array.prototype.every()
method to check if all values of an array are equal in JavaScript.
Did you accidentally commit sensitive information? Learn how to completely purge a file from Git history.
Learn how to create a custom responsive favicon that can adapt its color palette for dark mode with this quick guide.
Learn how to use CSS pseudo-classes to style an element based on changes to its state.
A quick reference for inherited CSS properties.
Testing Redux-connected components is pretty common. Learn how to use this simple utility function to speed up your testing.