6 Fun CSS Snippets for Your Projects

Datetime:2017-04-18 05:29:45         Topic: CSS  HTML5          Share        Original >>
Here to See The Original Article!!!

One of the reasons that CSS is so fun to play around with is that you can use it to create so many different kinds of effects or styles. The styling language is incredibly versatile and can actually be really fun to use if you know your way around it and enjoy being creative. What follows is a list of some of the most fun ways we could find to play with CSS. The snippets in the list below will remind you of just how much fun you can have as a developer. Check it out!

1. Emoji Hats

This CSS Snippet can be used to add a fancy top hat to any of your favorite emojis. Add a hat to a pig, a frog, a cow, or a monkey…no matter which animal you choose, it’s just about guaranteed to look both hilarious and adorable (or don’t choose an animal at all, but a regular face emoji, or really go rogue and choose something like a cheeseburger to add your top hat to).

2. Fun Textbox

This snippet demonstrates how to have fun with a textbox. Typically textbox style is pretty straightforward and boring, but in this case, creative liberties have been taken to make the textbox look like a piece of paper from any notebook or journal. The old-fashioned typewriter font is also a nice touch that adds a sense of authenticity to this snippet. Another option for font might be one that looks like handwriting or handwritten script.

3. Fun with Perspective

If you ever find yourself wanting to play around with perspective and shadows, this snippet does a great job of doing just that. Use it as inspiration for your own perspective play, or add a few customizations and use it in your own projects. Things that you might want to customize include font-family, font-size, and text and shadow colors.

4. Moving Circles

If you know what you’re doing, then there are so many fun effects and experiments that you can achieve using HTML5 canvas. This fun snippet uses HTML canvas to create a background of colorful animated circles that constantly drift around and in and out of the canvas viewport. The color, speed, and size of the circles can all be customized.

5. Franklin the Animated Fish

What’s more fun than an animated fish? The snippet creates a fish that swims around the viewport, swimming out of sight and then back into it. It also includes animated bubbles that have the appearance of floating around in the water, which is a nice realistic touch.

6. Split Emojis

This might be the most fun snippet on the list. This snippet shows you how to split up an emoji so you can use components from two different emojis to create one cool hybrid — like the horse with the unicorn horn, a heart that’s half green and half purple, or a butterfly with two different color wings. It’s a pretty cool and unique effect that can be achieved relatively easily using this super fun snippet.








New