CSS Effect Snippets on Speckyboy Design Magazine https://speckyboy.com/topic/css-effect-snippet/ Resources & Inspiration for Creatives Wed, 05 Feb 2025 09:03:56 +0000 en-US hourly 1 https://speckyboy.com/wp-content/uploads/2024/03/cropped-sdm-favicon-32x32.png CSS Effect Snippets on Speckyboy Design Magazine https://speckyboy.com/topic/css-effect-snippet/ 32 32 8 CSS & JavaScript Snippets for Texture & Pattern Effects https://speckyboy.com/texture-pattern-effects-css-js/ https://speckyboy.com/texture-pattern-effects-css-js/#respond Mon, 04 Nov 2024 13:02:30 +0000 https://speckyboy.com/?p=103852 We have a fantastic collection of free-to-use CSS and JavaScript code snippets that you can use to create highly creative patterns & textures.

The post 8 CSS & JavaScript Snippets for Texture & Pattern Effects appeared first on Speckyboy Design Magazine.

]]>
Textures and patterns have long been a part of web design. Whether used as a subtle background or as a focal point of our content, they help to set the tone for our creations.

But thanks to ever-evolving web technologies, we can use textures and patterns to even greater effect. They no longer have to be confined to static display. Now, they can be combined with motion and shading techniques to produce some mind-blowing graphical features.

We have collected some highly creative code snippets that use classic assets in new and exciting ways. Enjoy, and be sure not to operate any heavy machinery for a few minutes after viewing! Your eyes may play some tricks on you.

Big Torus, Little Code

The mathematical concept of a torus is a fascinating ring-shaped revolution. This example is simply stunning. It demonstrates the concept better than anyone could explain it. What’s more, it uses a mere 33 lines of JavaScript to create. You may have the urge to stare at this one for a few hours.

Is That a Petri Dish?

Beyond the beautiful detail of this “circle packing” animation, there could be some very useful real-world adaptations. This could be used, say, to demonstrate how bacteria grows or to re-create a pointillistic painting. Regardless, it’s quite mesmerizing to watch.

Night Glow

Textures still make for great backgrounds. And this night sky full of glowing (and occasional shooting) stars shows that special effects don’t have to be overbearing. You can create something that has movement while maintaining usability.

Dynamic Disco Ball

This one is quite interesting. It uses reflection mapping with Three.js to create a disco-ball like surface that changes as you move your cursor. Moving up and down results in a change to the smoothing, while sideways movement increases the “bumpiness” of the texture.

Feed the Tree

Here we have an animated tree that is reminiscent of a hand-drawn flipbook. The tree sprouts up and forms leaves as a scribbly background moves furiously about. Even better is that it uses just HTML5 Canvas and JavaScript – no images necessary.

That’s a Lot of Dots

At first, this example could be mistaken for footage of a cosmic event. In reality, it’s a script that uses WebGL2 to create transform feedback particles. There are 500,000 color-shifting particles here that react to your cursor movement. If this is indeed happening in space, we’d better take cover.

Back to Math

Let us not even try to explain the concept of a Logarithm. Just know that, in animated form, it is quite compelling to watch. A colorful, shape-shifting texture gives off an incredibly retro vibe. As a bonus, clicking on the animation will create a new effect.

Hello, Sunshine

If this doesn’t bring a smile to your face, you might do better studying the mystery math above. With spinning shapes layered on top of an ever-changing background, there is a lot going on here. While probably not a great fit for a page background, it certainly would bring focus to a banner or hero area.

A Pattern of Change

The examples above have taken something basic (a shape, a pattern, etc.) and transformed it into something else completely. These snippets are colorful, interactive, and compelling.

It just goes to show what the right mix of coding knowledge and creativity can achieve.

More CSS Effects Snippets

The post 8 CSS & JavaScript Snippets for Texture & Pattern Effects appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/texture-pattern-effects-css-js/feed/ 0
10 CSS & JavaScript Snippets for Page Transition Effects https://speckyboy.com/page-transition-effects/ https://speckyboy.com/page-transition-effects/#comments Mon, 04 Nov 2024 01:24:26 +0000 https://speckyboy.com/?p=98191 A collection of CSS and JavaScript snippets for creating page transitions that you can use to add something exciting to your next project.

The post 10 CSS & JavaScript Snippets for Page Transition Effects appeared first on Speckyboy Design Magazine.

]]>
The act of clicking around a multipage website can become monotonous over time. Adding page transition effects to the mix can help to kick things up a notch.

They’re great for keeping the user’s interest as new content loads while maintaining a minimal impact on performance.

With that in mind, here are 10 examples of page transitions that can add a little something special to your next project:

Vue.js Variety

With the help of the Vue.js framework, the examples here sport a quick and slick set of transitions. There’s a nice mix here of basic transitions (fade, zoom) and a few that are a bit unique compared to what we normally see (flipX, flipY and slideUp).

See the Pen Vue2 page transitions with GSAP by Tim Rijkse

Old School Television

Intentional or not, this transition is reminiscent of an old CRT television being turned off. The colored background shrinks down to a single line, much like what my old TV did after a night of watching MTV (when they still played music, that is). Then, the transition finishes off by reversing the effect (as my TV did when I woke up the next morning).

See the Pen Page Transitions by Mergim Ujkani

Morphing SVG

A circular SVG is used in this transition to add a clock-like effect. The movement adds a cinematic quality that seems like a perfect fit for a multimedia site.

See the Pen Page Transition Loader by Arsen Zbidniakov

Speedy Transition with Preloader

If you’re going to use page transitions in multiple places throughout your site, then they’d better be quick. That’s what is so cool about this example. There’s a colorful animated preloader that quickly makes way for the content to reveal itself. It’s interesting to look at while not wasting precious time.

See the Pen Page Transition with Loader by John Heiner

Thumbnail to Full Page

This is quite a unique effect, as clicking a thumbnail image transitions to a modal using that very same image as a full-screen background. The effect is a combination of CSS transitions and Angular.js.

See the Pen Thumbnail to fullscreen page transition by Steve Gardner

Wipe it Clean

A good old wipe effect has been a staple of TV and film transitions for decades. Here, we see a variation of it activated with CSS and a tiny bit of jQuery.

See the Pen Page transition CSS3 by TOMAZKI

Cubic Bezier with GSAP

GSAP is a library that enables super-fast animations. This example utilizes it to create a “slide up” transition effect, along with some animated background fun.

See the Pen GSAP Cubic bezier page transition by Maciej Siwanowicz

Splish-Splash

With a cool “splash” effect, this responsive modal transition will certainly get a user’s attention. It’s quick, colorful, and fun. It’s built with Lottie, which brings After Effects transitions to the web.

See the Pen Responsive bodymovin modal / page transition by Jonas Sandstedt

There’s a Glitch

There’s something about the dystopian glitch effect that is just timeless. Countless sci-fi shows and movies wouldn’t be the same without it. This example from nclud shows how they built a page transition with all kinds of glitchy goodness.

See the Pen Canvas Glitch Intro by nclud team

3D Cubes

Imagine that each page on your site is a panel on a cube (or pentagon, or hexagon, etc.). Going to the next page is just flipping that shape around to show the correct panel. That’s kind of the point behind this rotating cube effect that utilizes jQuery and Velocity.js.

See the Pen 3D Cube Page Transition by Hubert Warzycha


Page transitions have come such a long way in recent years. They’ve gone from simple fades and color changes all the way to effects that wouldn’t look out of place in a movie.

The combination of CSS, along with the right JavaScript library, can produce compelling visuals. When used responsibly, transitions can a fun way to enhance UX.

More CSS Effects Snippets

The post 10 CSS & JavaScript Snippets for Page Transition Effects appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/page-transition-effects/feed/ 1
8 CSS & JavaScript Snippets for Creating 3D Text Effects https://speckyboy.com/css-js-3d-text-effects/ https://speckyboy.com/css-js-3d-text-effects/#respond Sat, 02 Nov 2024 18:32:36 +0000 https://speckyboy.com/?p=128022 A collection of CSS and JS snippets for creating beautiful 3D text effects. They run the gamut from calm and classy to outrageously animated.

The post 8 CSS & JavaScript Snippets for Creating 3D Text Effects appeared first on Speckyboy Design Magazine.

]]>
If you’re looking to make a visual impact in your web projects, 3D text effects are a surefire way to do so. They can turn an ordinary website headline into a can’t-miss work of art.

The great thing is that a wide variety of 3D effects can be created using CSS and JavaScript. When thoughtfully implemented, this enables text to stay accessible and responsive. It’s a far cry from the days when such effects were only available through the use of images.

Today, we’ll take a look at some snippets that feature beautiful 3D text effects. They run the gamut from calm and classy to outrageously animated. There’s something here for just about every need.

Letters on a Shelf

Here’s a fun example that shows off the power of the Three.js library. 3D text appears on a series of shelves – but there’s more than meets the eye. Click or touch a letter, and it goes tumbling to its imminent doom.

See the Pen Interactive 3D-Letters using Three.js &Cannon.js by Angela Galliat

Dot Matrix Signage

This text snippet simulates the look of a dot matrix sign and even lets you input your own custom text. As the sign rotates horizontally, note the subtle changes in hue. It nicely mimics the type of shading effect you’d see in the real world. Moving your cursor up and down also tilts the viewing angle.

See the Pen Pseudo 3D text by JK

Comic Book Heroes

The use of a cartoonish font and CSS animation make this example stand out. Rather, each word “jumps” at you in staggered intervals. Text outlines and shadowing help to bring out that third dimension.

See the Pen CSS 3D Text Effect by Kyle Wetton

Wavy Words

Amazingly, this 3D wave effect is done with pure CSS (and just over 50 lines, to boot). A unique layered look is combined with a blend mode to add a touch of mysticism. The gentle animation means that you can call attention to text without overwhelming users.

See the Pen Only CSS:Text Wave by Yusuke Nakaya

In the Shadows

Perhaps it sounds simplistic, but CSS shadows offer an effective way to add a 3D effect. Here we have a demonstration of two different ways to achieve three dimensions. Using the CSS filter property allows some of the page background to come through, while text-shadow provides a more traditional look.

See the Pen 3D effect with shadows by zastrow

Going Retro

We admit that this particular effect may not be appropriate for most projects. But it’s still great fun. The retro video game vibe and pulsating text go together like PAC-MAN and dots. It may even make you want to pull that old Commodore 64 out of storage.

See the Pen ’80s Inspired Pure CSS graphics by CurleyWebDev

The Strokes

3D doesn’t have to mean undignified. Take this stroked text for example. It offers plenty of multi-dimensional impact but has been designed to blend in. This minimal effect could be great for article headlines or page titles.

See the Pen YPZJQz by @TimLamber

Set In Stone

Want even more subtlety? This engraving effect adds dimension and a bit of class. The styling was crafted with CSS, while the current date is generated via JavaScript. It’s going 3D without getting into anyone’s face.

See the Pen CSS only 3D engraved stone by Michael Burridge

Add 3D Text Effects with CSS & JavaScript

Whether you’re looking to add movement and interactivity or subtle decoration, 3D text effects can help. They call attention to important content and allow you to break out of the mundane.

What’s more, you don’t necessarily have to write a massive amount of code to create something unique. Some of the examples above were built with a relatively small amount of CSS. You can start small and work your way up to something grander if need be.

More Text Effect Snippets

The post 8 CSS & JavaScript Snippets for Creating 3D Text Effects appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/css-js-3d-text-effects/feed/ 0
8 CSS & JavaScript Snippets for Reflection & Refraction Effects https://speckyboy.com/css-javascript-snippets-reflection-refraction-effects/ https://speckyboy.com/css-javascript-snippets-reflection-refraction-effects/#respond Thu, 24 Oct 2024 06:59:14 +0000 https://speckyboy.com/?p=134303 The simple act of light reflecting off of or refracting through a surface can produce stunning visuals. We see it every day in the physical world. It might be the...

The post 8 CSS & JavaScript Snippets for Reflection & Refraction Effects appeared first on Speckyboy Design Magazine.

]]>
The simple act of light reflecting off of or refracting through a surface can produce stunning visuals. We see it every day in the physical world. It might be the way the sun peeks through your office window or light hitting a mirror at just the right angle. They’re like little science experiments that take place right in front of us.

Thanks to the latest CSS and JavaScript techniques, these effects are also dazzling web users. Everything from relatively simple reflection details to light-bending refractions is popping up on our screens. Even highly-realistic behaviors are possible.

Today, we’ll introduce you to some outstanding code snippets that bring mirror, reflection, and refraction effects to life. Let’s take a look!

Bonsai animation

This gently-animated bonsai provides a calming feel that belies the serious technology that makes it work. It utilizes SVG and the GSAP animation library to create a lovely water reflection effect.

See the Pen Bonsai animation by Kamil

PBR Reflection

Here’s a very unique snippet that features multiple effects. First, there’s a rotating shape that hovers in front of a mirror-like surface. Notice the shiny reflection underneath as well. The lighting and shading are gorgeous. You can also use your mouse or touch to change the perspective.

See the Pen PBR Reflection by ycw

Mirrored Light Orb Cursor Movement

This snippet is proof that mirror effects can be applied in unconventional ways. Two brightly-colored orbs appear against a black background. Move your cursor to take control of the left (white) one, while the other mirrors your movements. Dragging these orbs all over the screen in tandem is more fun than it should be!

See the Pen Mirrored Light Orb Cursor Movement by Diana Le

GLSL: Refracted rays

The color and texture of this animation are mesmerizing. Rows upon rows of spheres move toward you, while your cursor position changes the refraction index. The look ranges from glassy to old-school television static. HTML 5 canvas and JavaScript are used to create the ultra-smooth movement.

See the Pen GLSL: Refracted rays by Liam Egan

Pure CSS text mirror

Mirrored text is surprisingly easy to implement. With just a few dozen lines of pure CSS, you can achieve an attractive effect that is sure to grab a user’s attention. The secret is in the CSS transform property, which flips the mirrored version upside down. From there, a gradient is used to create a more realistic look.

See the Pen Pure css text mirror by Tim

Text Refraction

Add some custom text and this snippet will make it look as if it’s being viewed through a crystal ball. Cursor movements change both the perspective and size of the effect. When combined with the colorful background, the whole presentation has a 1960s vibe to it.

See the Pen Text Refraction by Juan Fuentes

Phone Reflection

Check out this abstract take on a modern obsession – staring blankly into your phone. Click on the phone and simulated text reflects slowly up the subject’s body. It’s similar to what you might see in a darkened movie theatre.

See the Pen Phone Reflection by luke lincoln

Three.js Reflection

Speaking of abstract works, this virtual game board is something to behold. Mirrored 3D balls roll around as light bounces off of them. You can also change the perspective of the scene, adding even more intrigue to the outstanding special effects. If astronauts play games in space, this might be the one.

See the Pen Three.js Reflection by seanwasere

Adding a New Perspective to the Web

Amazing as it may seem, developers are crafting some seriously stunning mirror, reflection, and refraction effects for the web. Not only do they look incredible, but many also make great use of physics to add a layer of realism as well.

The post 8 CSS & JavaScript Snippets for Reflection & Refraction Effects appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/css-javascript-snippets-reflection-refraction-effects/feed/ 0
8 CSS & JavaScript Snippets for Creating Realistic Liquid Effects https://speckyboy.com/creating-liquid-effects-on-the-web/ https://speckyboy.com/creating-liquid-effects-on-the-web/#respond Sun, 20 Oct 2024 21:46:54 +0000 https://speckyboy.com/?p=106809 A collection of liquid effects CSS & JavaScript snippets that are incredibly realistic, while others are reminiscent of a sci-fi fantasy.

The post 8 CSS & JavaScript Snippets for Creating Realistic Liquid Effects appeared first on Speckyboy Design Magazine.

]]>
Special effects have been used in web design for years (Flash, anyone?). But today’s technology affords designers better ways to integrate them into our projects. Between CSS, a host of JavaScript libraries and users with powerful hardware, we have all the resources we need to create compelling effects.

Among the most sought-after and complicated effects are liquid simulations. To do it right, it takes power – from both code and processors. Luckily, those items are no longer in short supply.

Thus, we’ve found a number of examples of liquid effects that are out of this world. Some look eerily realistic, while others are more reminiscent of a sci-fi fantasy. Let’s take a look:

The Blob Comes Alive

This rippling, liquid mass is mesmerizing to look at. But when you find out that it’s also interactive, it becomes even more impressive. The blob rotates along with your cursor, giving this WebGL-powered snippet the appearance of being a sphere that’s floating out in space.

Sorry, I Prefer a Shiny Blob

Staying with the spherical theme, this example demonstrates a more well-formed liquid. And, even though we don’t see things like this floating around (well, not on Earth, anyway) the shiny texture and blue color project a realistic look. The checkered pattern within the liquid also helps here, as it gives off a swimming-pool vibe.

Wiggly, Jiggly Button

While it’s tempting to think of liquid effects in terms of a full-screen presentation, it can also work in smaller forms. This button looks ordinary at first, but upon hover it becomes a quivering hunk of JELL-O. It’s seriously fun to play with! While the amount of JavaScript it takes to power this little guy may be impractical for real-world use, it does show that a small UI element can make a big impact.

A Drop in the Button

There is a lot of talk about microinteractions these days. Those little details can do wonders for the user experience. Take this humble radio button. When clicking it, you get more than just a plain old dot in the middle. In this instance, the button uses a neat animation to make it look as though a drop of liquid has filled in your choice. It’s simple, quick and effective.

Liquid Loader

The loading graphic is one of the long-standing traditions in web design. So much so that it almost gets a little boring. But this liquid-filled example is both unique and fun. It would be the perfect compliment for say, a beverage company or pub. Best of all, no JavaScript required!

Juice Me Up

Inspired by an Android charging animation, this snippet offers gentle waves and a generous helping of bubbles. Using the slider, you can raise or lower the fill level. Toggle switches let you change the color and the type of bubbles you want to see.

Morphing Liquid Rainbow Experience

Here is a perfect mesh of retro and modern. On one hand, you have the far-out sight of a shifting liquid rainbow – a classic 1960s look. But it wouldn’t be possible without the use of GLSL shading. The animation is incredibly smooth and takes only 60 lines of JavaScript to achieve.

Pour Out Some Amazing Effects

It used to be that even attempting a liquid simulation was a questionable choice. The effects weren’t all that great and most users didn’t have enough horsepower to view them, anyway. That’s all changed in recent years.

You no longer need to rely on resource-hogging browser plugins to create something realistic. In fact, the solutions we have at our disposal are cross-browser and relatively lightweight. That gives you the freedom to experiment and let those liquid effects spill into your projects.

More CSS Effects Snippets

The post 8 CSS & JavaScript Snippets for Creating Realistic Liquid Effects appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/creating-liquid-effects-on-the-web/feed/ 0
8 CSS & JavaScript Snippets for Bokeh Effects https://speckyboy.com/8-css-javascript-snippets-for-creating-beautiful-bokeh-effects/ https://speckyboy.com/8-css-javascript-snippets-for-creating-beautiful-bokeh-effects/#respond Sat, 19 Oct 2024 07:09:47 +0000 https://speckyboy.com/?p=150459 Enhance your website's look with these CSS and JavaScript snippets for creating eye-catching bokeh effects. Perfect for adding visual flair.

The post 8 CSS & JavaScript Snippets for Bokeh Effects appeared first on Speckyboy Design Magazine.

]]>
Bokeh has long been a celebrated photographic style. In simplistic terms, it features a primary focus on a subject and a gently blurred background. The technique is both beautiful and a sure way to grab a user’s attention.

But what if you want to implement a Bokeh aesthetic without photography? There are some unique methods for doing so.

Web designers are using CSS and JavaScript to create all manner of Bokeh-inspired effects. You’ll find the familiar blurry lens flare from photos. But there’s also the addition of movement, generative UIs, and plenty of artistic license being used.

Here are eight examples of Bokeh effects powered by code. There may be some similarities on the surface. But look closely, and you’ll also discover how detailed these presentations are. Let’s get started!

Bokeh Lighting Background

In photography, Bokeh often adds depth to an image. This snippet takes the concept to an entirely different level. Three.js is used to add some slick 3D animation. Plus, users can drag the background to change the perspective.

See the Pen Bokeh Lighting Background by Wakana Y.K.

Bokeh CSS Doodle

A combination of CSS Grid, animation, and filters bring this presentation to life. The movement is noticeable without becoming a distraction. This makes it a nice solution for a hero area or even a page background. Clicking on the canvas generates a new scene with the help of JavaScript.

See the Pen Bokeh CSS Doodle by Crystal S

Animated Bokeh Lava Lamp Canvas

This example of Bokeh combines the effect with the gooey brilliance of a lava lamp. Bubble-like lens flares fade in and out of focus, while the movement remains serene. The result is a scene that creates a calming vibe.

See the Pen Animated Bokeh Lava Lamp Canvas by smpnjn

Hex Bokeh Effect

Here’s a decidedly different take on Bokeh. First, you’ll notice a static-looking background that features hexagons. But start scrolling, and you’ll discover a scattered parallax effect. The snippet also uses a clever bit of generative UI to create a new scene upon each page refresh.

See the Pen Hex Bokeh by Will Boyd

Bokehlicious with CSS

If you’re looking for subtle beauty, this snippet fits the bill. True to form, it emphasizes the foreground text. Meanwhile, colorful blobs move quietly in the background. SVG and CSS combine to add an atmospheric touch.

See the Pen bokehlicious by Andy Fitzsimon

Canvas Bokeh Effect

You may notice that most of the examples we’ve shared have a dark color scheme. But this one is proof that a bright palette can also be compelling. Once again, subtlety rules as dots gently fade in and out. It’s nothing fancy – but that’s the point.

See the Pen Canvas Bokeh Effect by Aaron Silber

Snowing Bokeh

This snowy snippet can convey an array of emotions – from seasonal to noir. The black-and-white color scheme also provides a different twist on the aesthetic. The greatest concentration of white is at the bottom, yet it’s hard not to focus on the darker dots descending from the top.

See the Pen Snowing Bokeh by Preetesh Jain

Refreshing CSS Bokeh Effect

Does your project have some flexibility when it comes to color? Then this snippet is worth checking out. Each click or refresh paints a new scene – including the color palette. The slow-moving orbs and muted tones won’t distract from your content.

See the Pen Untitled by Nayra Rodrguez

Bring Bokeh into Focus Through Code

Implementing Bokeh effects is a surefire way to add some artistic flair to your website. And the snippets above demonstrate a variety of potential uses. You can create anything from subtle backgrounds to something big and bold.

What’s more, CSS and JavaScript allow for almost infinite customization. Colors, intensity, and speed of motion are just a few of the items that can be tweaked. From there, you can craft a presentation that fits the overall aesthetic of your page.

More CSS Effects Snippets

The post 8 CSS & JavaScript Snippets for Bokeh Effects appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/8-css-javascript-snippets-for-creating-beautiful-bokeh-effects/feed/ 0
8 CSS & JavaScript Snippets for Creating Blur Effects https://speckyboy.com/css-javascript-blur-effects/ https://speckyboy.com/css-javascript-blur-effects/#respond Fri, 18 Oct 2024 06:04:47 +0000 https://speckyboy.com/?p=154155 We share some excellent examples of CSS & JavaScript blur effects. They are a surefire way of making a design element stand out.

The post 8 CSS & JavaScript Snippets for Creating Blur Effects appeared first on Speckyboy Design Magazine.

]]>
Adding blur effects is a surefire way to make a surrounding design element stand out. For example, adding a bit of haziness to a background photo will draw attention to the layered text on top.

Crafting this look used to require photo editing software. But that’s no longer the case. You can add stunning blur effects using CSS and JavaScript. And it’s easier than you may think.

There is also a wide array of possibilities. You could opt for that simple blur on a photo. But you can also combine the effect with animation and user actions. This allows you to add some creativity to the mix.

With that in mind, let’s explore eight excellent examples of CSS and JavaScript blur effects in action.

Animated Blurred Gradients

Blur effects can turn a bold design into something subtle. This animated background is a prime example. It could be overwhelming without the effect. Add some blurriness, and it becomes a bit player in the scene.

See the Pen Blurred animated gradients by Wil van der Tuin

CSS Text Transform with Blur

Here’s a unique way to create a spooky atmosphere. The text is initially presented at an extreme angle and is partially blurred. As you scroll, both the angle and degree of blur are increased. The CSS transform property is used to great effect.

See the Pen text-transform-and-blur by Ambika Castle

Glitched & Blurred CSS Worms

This animation is reminiscent of looking at bacteria through a microscope. Tiny “worms” jitter their way along the screen. The combination of blur and glitch effects makes it all the more realistic. You might want to wash your hands after watching this one.

See the Pen Worms by Fabio Ottaviani

Pure CSS Blurred Video Background Login Box

In this example, a blur effect is used to create a retro look. A CSS filter is applied to the video background. It adds to the aesthetic while also allowing the login box to take center stage.

See the Pen Pure CSS Blurred Video Background Login Box. by Lokesh Suthar

Interactive Dynamic Depth of Field Blur Effects

This depth-of-field presentation demonstrates the power of blur effects. Hover over a playing card and see it come into focus while the others are blurred into obscurity. The 3D look is something to behold.

See the Pen Interactive dynamic depth of field by Thomas Trinca

Blurred VHS Text Effect

If you came of age during the 1980s, you’re probably familiar with VHS tapes. Blurriness came naturally to these relics of the past. Here, the effect is recreated with CSS and JavaScript.

Note: This animation contains strobe effects – please use discretion when viewing!

See the Pen VHS text by Maria

Animated Blurred Loading Dots

This relatively simple loading animation has a secret weapon. As each sphere bounces towards us, it becomes blurry. It’s almost as if the objects were getting a little too close for comfort. The effect adds an element of surprise.

See the Pen Loading Animation by Prathamesh Koshti

Slick Slideshow with Blur Effect

Here’s a way to dress up a slider without resorting to massive images. This snippet creates a duplicate of the current image and places it in the background. From there, a heavy blur effect is added to compliment the aesthetic.

See the Pen Slick Slideshow with blur effect by Fabio Ottaviani

Bringing a Fresh Perspective to Design

Blur effects are a great addition to any designer’s toolbox. For one, they’re extremely versatile. You can use them as a background piece. But they’re also able to play a more prominent role.

Even better is that you don’t need to be an expert photo editor. Code can satisfy most use cases. For example, CSS has the blur() function built right in. And effects can even be applied to background elements.

Further, JavaScript can help take these effects to the next level. Animation libraries like GSAP offer a ton of flexibility.

More CSS Effects

The post 8 CSS & JavaScript Snippets for Creating Blur Effects appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/css-javascript-blur-effects/feed/ 0
8 CSS & JavaScript Snippets for Card UI Hover Effects https://speckyboy.com/css-javascript-card-ui-hover-effects/ https://speckyboy.com/css-javascript-card-ui-hover-effects/#respond Mon, 14 Oct 2024 07:14:08 +0000 https://speckyboy.com/?p=136402 From bold transformations to simple highlights, we share some fantastic CSS & JavaScript card UI hover effect snippets.

The post 8 CSS & JavaScript Snippets for Card UI Hover Effects appeared first on Speckyboy Design Magazine.

]]>
Card UI layouts are quite popular these days – and it’s easy to see why. They’re incredibly versatile, with the ability to house anything from product listings to blog post teasers.

These elements are also the perfect place to add various hover effects. It’s not only attractive but also a means to improve the user experience. Even a subtle effect can help cards stand out among a group, thus making the feature more intuitive.

The design community has created some outstanding examples. From bold transformations to simple highlights, there is something for virtually every use case.

With that in mind, here are some prime examples of card UI hover effects that have been enhanced with CSS and JavaScript.

Card Hover Interactions

Displaying a large amount of content at once can overwhelm users. That’s where this snippet comes in. It consists of a simple title coupled with a background image. Hover over a card and you’ll find some descriptive text and a call-to-action. Best of all, it has been built with pure CSS.

See the Pen Card Hover Interactions by Ryan Mulligan

Profile Card Hover Effect

Here’s a similar concept, but even more minimalistic. The effect zooms in on the card’s photo and reveals the subject’s name and social media links. Overall, it’s very pleasing to the eye without becoming too busy.

See the Pen Profile Card Hover Effect by P

Pokemon Card Holo Effect

Everyone loves Pokémon, right? But that’s not the only cool thing about this snippet. Each card features a stunning holographic effect. It’s a cleverly-devised setup that uses animated GIFs and gradients to produce a sparkling beauty. Perhaps the effect is not for everyone, but it’s undeniably unique.

See the Pen Pokemon Card Holo Effect by Simon Goellner

CSS Card Hover Effects

If you’re looking for a way to make your card UI stand out, this hover effect will do the trick. It takes a grayscale card and turns it into an explosion of color. Beyond the bright pink hue, cards also expand in size to reveal more detailed content. All told, users can’t help but take notice.

See the Pen CSS Card Hover Effects by Jhonier Riascos Zapata

Pure CSS Holiday Feature Folding Cards

These mini-cards are closer in style to buttons than your typical content card. Regardless, their hover effect is pure magic. Each card “unfolds” to display a video alongside text and a call-to-action. It’s amazing how much can fit into such a small space. In addition, the responsiveness of the UI is also impressive.

See the Pen Holiday Feature Folding Cards [Pure CSS] by Madalena

Profile Card UI

Full disclosure, the hover effect here is just a minimal part of what this snippet does. But the tabs at the bottom of this profile card are nifty. They allow you to fit a large amount of content into a relatively tiny design element. The use of glassmorphism is also spot-on.

See the Pen Profile Card UI by JotForm

Player/User Cards

Crafted in the style of double-sided collectible cards, this UI shows additional information upon hovering. It’s clean, colorful, and refrains from taking over the rest of the page. This snippet would fit nicely into any project where cards are used to display data.

See the Pen Player/User Cards by Alvaro Montoro

CSS-Tricks Card Carousel

Here’s a different take on the traditional carousel. Cards are overlapped – making for an effective means to save space. Hover over an individual card, and it reveals itself. And while this example shows a circular animation on the active card, it could easily be adapted to show text or images.

See the Pen CSS-Tricks Card Carousel by William Goldsworthy

Adding Interactivity to a Staple of Web Design

Hover effects are there to bring interactivity and even a little bit of fun to any element. But there’s something unique about implementing them within a card UI. They add personality to what could be a rather static feature.

The snippets above show that there are several different ways to accomplish this. The effects can be subtle or substantial, based on the type of impact you’re looking to make. It’s something that even a buttoned-down corporate website can benefit from.

The post 8 CSS & JavaScript Snippets for Card UI Hover Effects appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/css-javascript-card-ui-hover-effects/feed/ 0
8 CSS & JavaScript Snippets for Creating Halftone Effects https://speckyboy.com/combining-halftone-effects-with-code/ https://speckyboy.com/combining-halftone-effects-with-code/#respond Sat, 12 Oct 2024 07:56:35 +0000 https://speckyboy.com/?p=118073 Discover various CSS and JavaScript snippets for adding halftone patterns to your web designs and making them interactive.

The post 8 CSS & JavaScript Snippets for Creating Halftone Effects appeared first on Speckyboy Design Magazine.

]]>
Halftone patterns, those intensely-dotted images, are a mainstay of both print and web design. While traditionally used as a means of faithfully reproducing images in print, it has also become a style all its own.

Today, halftone patterns are used as backgrounds or to provide surreal special effects to images. And as CSS and JavaScript have progressed, designers have also found a way to integrate the effect into code. The results can be stunning.

Let’s have a look at some examples of how Halftone is being implemented through code. As you’ll see, there are a number of different takes and techniques for bringing this classic pattern to the web.

Halftone Your Cat (Or Non-Cat) Photo

This is probably the most familiar implementation of Halftone. It consists of adding the effect to an existing photograph (a cat, in this case). But this snippet is also fully customizable. You can replace dots with, for example, emoji or text. In addition, you can change the sizing of each dot. And, yes, you can swap the cat with a face – but why?

See the Pen Halftone by ycw

Press for Halftone

Here’s a very creative use for Halftone. There’s a subtle pattern displayed on this button, with a slightly bolder hover effect. But clicking will turn on a high-contrast pattern that will grab your attention.

See the Pen Halftone button by Taylor Hunt

Revealing Secrets

The flashlight effect has become quite popular in recent times. Here, it’s combined with a halftone pattern that “illuminates” hidden text. It’s a fun interaction, and the pattern brings a bit of a retro/brutalist vibe.

See the Pen Reveal Hidden Text by Tyler Durrett

Taking a Subtler Tone

No law says halftone has to be loud – and this snippet is proof. Halftone effects are blended perfectly into a crosshatch pattern. The result is something both unique and subtle. Bonus points for being built with pure CSS.

See the Pen Half Tone Cross Hatch Pattern by Devin Price

Far-Out Hover Effects

Here’s a snippet that looks like something from a sci-fi thriller. A blue-on-black halftone photo stares at us from the other side of the screen. Place your cursor over it, and a portion of the image fades into obscurity.

See the Pen Halftone Aberration by Théo Gil

Parallax Sans BS

Another surreal take on the effect, this photo features a dizzying array of colored dots. Moreover, moving your cursor brings a 3D parallax effect that exposes a subtle outline floating above the main image. The added dimension makes the effect all the more interesting.

See the Pen Parallax Halftone by Eric Jackson Wood

Duo It All

Thanks to CSS blend modes, halftone effects can be added to just about anything. In this example, a beautiful blend is placed on top of various photos. Hovering over one reveals its true color. It’s a very practical use that is compelling but without being over-the-top.

See the Pen CSS Blend modes by Jos van Weesel

More Than Your Average Text Shadow

Let’s finish things off with another practical use case. Here we have some basic outlined typography that utilizes offset shadowing. The first two examples use a solid color shadow, which works well. But the second set features a halftone pattern, which offers a more artsy feel.

See the Pen Strokes, Shadows + Halftone Effects by Mark

A Pattern of Innovation

The great thing about combining code with a classic image effect is that it opens up a whole new world of possibilities. Sure, we can add a halftone pattern to a design element – but why stop there?

Designers are finding new and clever uses for these effects. In the code snippets above, halftone is utilized both traditionally and innovatively. The old boundaries only exist if we want them to.

More CSS Effects Snippets

The post 8 CSS & JavaScript Snippets for Creating Halftone Effects appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/combining-halftone-effects-with-code/feed/ 0
CSS Filter Toolbox – Libraries, Web-Based Apps & Tutorials https://speckyboy.com/css-image-filter-toolbox/ https://speckyboy.com/css-image-filter-toolbox/#comments Wed, 09 Oct 2024 21:12:32 +0000 http://speckyboy.com/?p=72935 CSS Image Filters are a simple method for adding unique styles to images. We've collected the best free resources to help get you started.

The post CSS Filter Toolbox – Libraries, Web-Based Apps & Tutorials appeared first on Speckyboy Design Magazine.

]]>
CSS filters allow you to apply a wide variety of effects directly through the browser, eliminating the need for external image editing tools.

From blurring to color adjustments and adding shadows, they can enhance the look and feel of your photos and web elements, making them more engaging.

This article is a curated collection of CSS filter resources, including CSS filter libraries, JavaScript plugins, web-based apps, and tutorials.


You might also like these toolboxes: CSS Flexbox, CSS Animation, Styleguide Tools, or Tools for Formatting CSS.

CSS Filter Libraries

Collections of pre-designed libraries and classes that you can use to apply various CSS filter effects to photos or any web element.

colofilter.css

A library of CSS filters to recreate Instagram-like color overlays directly in your web designs.

 CSS Filter Tool

Instagram.css

A library for adding Instagram filters with CSS classes, perfect for quick photo styling.

 CSS Filter Tool

CSSCO Filters

A collection of CSS filters that mimic vintage film effects, ideal for adding a nostalgic touch to images.

 CSS Filter Tool

filters.css

Provides a set of creative CSS filters for enhancing web images with artistic effects.

 CSS Filter Tool

SassyFilters

Offers Sass mixins for easily creating customizable, complex CSS filter effects.

 CSS Filter Tool

CSSGram

A library that allows you to apply Instagram-like filters to images using CSS, enhancing visual storytelling.

 CSS Filter Tool

CSS Filter JavaScript Plugins

These plugins will extend CSS filter capabilities, allowing for more dynamic and interactive effects through JavaScript integration.

tiltShift.js

A jQuery Plugin library for applying the tilt-shift effect to images, creating a miniature scene illusion.

 CSS Filter Tool

Philter.js CSS

Offers customizable CSS filters and transitions for creating visually striking web elements and images.

 CSS Filter Tool

Image Editor with CSS Filters & jQuery

Demonstrates practical applications of CSS filters, showcasing their potential in web design.

 CSS Filter Tool

picBeautifier 3000 Javascript Library

A fun JavaScript library to apply various CSS filters to images, experimenting with visual effects.

 CSS Filter Tool

CSS Image Filter Web-Based Apps

Web-based tools and applications where you can experiment with filter effects and generate CSS code in real-time.

cssFilters.co

A popular tool for testing and learning about CSS filters, with real-time previews.

 CSS Filter Tool

Filter Blend

A web-based and interactive tool for blending images with CSS filters and blend modes.

 CSS Filter Tool

CSS Filter Generator

Simple web-based tool for generating and customizing CSS filter effects with live previews.

 CSS Filter Tool

CSS Image Filter Generator

Simplifies the application of CSS filters, offering a straightforward UI for creating effects.

 CSS Filter Tool

CSS Filter

A nice tool on CodePen for live testing CSS filter effects.

 CSS Filter Tool

CSS Filter Generator

Online tool for creating and customizing various CSS filter effects.

 CSS Filter Tool

CSS Filter Tutorials & Guides

Educational resources, guides, and how-to articles focused on teaching you how to create and implement CSS filter effects manually.

The Simplest CSS Filter Tutorial

With just a few lines of HTML and CSS, you can quickly create a dynamic effect that changes a photo to black and white when you hover over it. This simple technique can add an engaging element to your web projects.

First, we need to set up the HTML structure. This will include just a basic container for our image. Replace your-image-url.jpg with the path to your image.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>The Simplest CSS Filter Tutorial</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>

<div class="image-container">
    <img src="your-image-url.jpg" alt="Example Image">
</div>
</body>
</html>

Next, the CSS to style the image and apply the grayscale() filter on hover. Create a style.css file and add the following CSS code:

.image-container img {
    width: 100%;
    transition: filter 0.5s ease;
}

.image-container img:hover {
    filter: grayscale(100%);
}

The CSS does two things:

  1. It ensures that the image fits within the container by setting its width to 100%.
  2. It adds a transition effect so that the change to grayscale happens smoothly over 0.5 seconds when the mouse hovers over the image.

List of all the CSS Filters

CSS filters offer a range of effects, from color adjustments to blurring and shading. Here's a closer look at each filter:

  • blur(): Adds a blur effect, simulating a lens out of focus. The intensity is adjustable in pixels.
  • brightness(): Makes an image brighter or darker. Values over 100% increase brightness, while below 100% decrease it.
  • contrast(): Enhances or reduces the difference between the darkest and lightest tones in an image.
  • drop-shadow(): Applies a shadow behind an element, customizable in color, size, and direction.
  • grayscale(): Converts an image to shades of gray, with 100% being completely gray.
  • hue-rotate(): Rotates the hue of an image around the color wheel, measured in degrees.
  • invert(): Inverts the colors of an image. 100% inversion swaps all colors for their opposites.
  • opacity(): Adjusts the transparency of an element, with 0% being fully transparent.
  • saturate(): Controls the intensity of colors, with values over 100% enhancing saturation.
  • sepia(): Applies a sepia tone, making the image look like an old photograph.

The post CSS Filter Toolbox – Libraries, Web-Based Apps & Tutorials appeared first on Speckyboy Design Magazine.

]]>
https://speckyboy.com/css-image-filter-toolbox/feed/ 1