5 Best Ways to Add Social Media Icons to Your WordPress Website or Blog
The post 5 Best Ways to Add Social Media Icons to Your WordPress Website or Blog appeared first on Torque.
Converting Color Spaces in JavaScript
A challenge I faced in building an image “emojifier” was that I needed to change the color spaces of values obtained using getImageData() from RGB to HSL. I used arrays of emojis arranged by brightness and saturation, and they were HSL-based for the best matches of average pixel colors with the emojis.
In this article, we’ll study functions that will be useful for converting both opaque and alpha-enabled color values. Modern browsers currently support the color spaces RGB(A), hex, and … Read article
The post Converting Color Spaces in JavaScript appeared first on CSS-Tricks.
Algorithmic Layouts
Don’t miss this video by Heydon that digs into CSS layouts. It’s great how he combines fundamental knowledge, like the way elements flow, wrap, and can have margin with new layout methods like flexbox and grid (with specific examples). Of particular note is the clear demonstration of how flexbox and grid help avoid the need to constantly intervene with media queries in order to affect responsive layouts.
So, in place of this…
.sidebar { float: left; width: 20rem;
}
.not-sidebar The post Algorithmic Layouts appeared first on CSS-Tricks.
Building Responsive WordPress Forms
(This is a sponsored post.)
Within the arsenal of every WordPress developer exists a toolbox of plugins used to implement key features on a website. Forms, up until now, have been a point of contention for most developers, given that no form plugins have offered seamless integration with existing website code. Therefore, forms often become an alien chunk of code requiring custom and time-consuming stylization.
Now there’s a solution: WS Form
WS Form is a developer-focused WordPress form plugin, … Read article
The post Building Responsive WordPress Forms appeared first on CSS-Tricks.
20+ Best Book Cover Mockup Templates
Elementor Acquires Layers WP to Expand Compatible Theme Options for Users
4 Things You Can Do With Gutenberg That You Can’t Do With The Classic Editor
The post 4 Things You Can Do With Gutenberg That You Can’t Do With The Classic Editor appeared first on Torque.
New ES2018 Features Every JavaScript Developer Should Know
The ninth edition of the ECMAScript standard, officially known as ECMAScript 2018 (or ES2018 for short), was released in June 2018. Starting with ES2016, new versions of ECMAScript specifications are released yearly rather than every several years and add fewer features than major editions used to. The newest edition of the standard continues the yearly release cycle by adding four new RegExp features, rest/spread properties, asynchronous iteration, and Promise.prototype.finally. Additionally, ES2018 drops the syntax restriction of escape sequences from … Read article
The post New ES2018 Features Every JavaScript Developer Should Know appeared first on CSS-Tricks.
Toggling Animations On and Off
A nicely detailed tutorial by Kirupa that gets into how you might provide a UI with persisted options that control whether animations run or not.
The trick is custom properties that control the movement:
body { --toggle: 0; --playState: "paused";
}Which are used within animations and transitions:
.animation { animation: bobble 2s infinite; animation-play-state: var(--playState);
}
.transition { transition: transform calc(var(--toggle) * .15s) ease-in-out;
}And toggle-able by JavaScript:
// stop animation
document.body.style.setProperty("--toggle", "0");
document.body.style.setProperty("--playState", "paused");
// play animationThe post Toggling Animations On and Off appeared first on CSS-Tricks.




