25 Awesome Christmas Projects Hidden in CodePen

CodePen is an online playground for talented front-end developers, a place where you can always find cool projects to widen your horizons, and see what other developers are up to. Year-end holidays are a great time to surprise your loved ones with creative personal projects, or to say thanks to your customers with some cool, cutting edge designs that will help the holiday cheer.

In this post we will take a peek at 20 awesome Christmas experiments on CodePen, that you can use for inspiration to create your own designs.

30 Awesome SVG Animation For Your Inspiration

30 Awesome SVG Animation For Your Inspiration

Designers used to create animations in HTML elements using CSS. However, due to the limitations of HTML elements… Read more

Merry Christmas Tree!

This “Merry Christmas Tree!” is built with SVG and JavaScript animation engine library, Greensock, with some of the plugins. The library draws the tree around with some sparkling, making the animation more alive

If you’re looking to add the Christmas vibe on your website, check out the code. No Christmas without a Christmas tree!

Pure CSS Christmas Lights

After creating a Christmas tree, check out how you can create Christmas light. It’s made of only an unoredered list while the styles is written with SCSS. I think it’s perfect for a website decoration.

It’s amazing how we can create a compelling animation today just using CSS.

A christmas loop in svg

This is a good example that demonstrate the power of SVG. Not only that you can create simple animation, but you can also create such a complex animation like this; creating a loop of transformation 3 different objects smoothly.

This animation is built with just a single div, a little CSS, and JavaScript library named Lottie.

See the Pen A christmas loop in svg by kittons (@airnan)
on CodePen.

Christmas Wishes

This “Pen” composes some SVG to create the scenery, the fox, and the bird. It’s using library called ParticelJS to create the snowfall. What makes it cool is that as you move the cursor around the snowfall, the snow will move away from the cursor as you’re moving it.

A winter wonderland scene

This christmas tree, the snow, and the snowfall are created with just HTML and CSS. The animation is made of CSS and it pretty straightforward. I think it’s a great example for those who’ve just learning CSS animation and see what it’s capable of.

CSS animated Xmas Tree (single element)

Do you believe that this Christmas tree and the animation with just a single div element and CSS?

HTML and CSS3 is really that powerful when you know the trick such as this “Pen” that gives you an example on how to create a Christmas tree and animate it. The trick here is to compose layer of shadows, animation, and transtions. It’s a great example to level up your CSS skill.

Family Christmas Songbook

This lovely Family Christmas Songbook app can play your favourite Christmas songs hosted on SoundCloud. The style rules are written in the LESS stylesheet language, and the music player functionality is provided by a custom jQuery plugin.

The snowflake and Christmas tree icons in the background give a solemn atmosphere to the design, and if you hover over the pen you can also find some subtle CSS effects.

Digital Christmas Tree

Designing for Christmas is always a thankful job, as its typical visual elements can be built in many creative ways. This pen is a good example for this. At first you can only see colourful triangles, seemingly unrelated to the holidays, but when you click on the Reveal button, they are set together into a Christmas tree. It’s not only a unique solution, but also reminiscent of a simpler game.

Christmas Animation with Snowfall

You don’t necessarily need to use JavaScript, if you want to create a cool animation for Christmas. In this pen, both the snowfall animation and the background images are created purely in CSS. It’s worth to examine the code a bit, as it shows the incredible capabilities of CSS3. The background image can be even mistaken for a real SVG graphic.

Santa On The Run!

Santa On The Run! is a fun JavaScript game for the holidays making use of the phaser.js HTML5 game framework. There are not too many rules in this game: Santa runs infinitely, or at least until he falls down. This pen gives you an excellent opportunity to understand how to write a simpler game in JavaScript.

Secret Santa Name Picker

Picking a name out of a hat has been a popular way in schools and offices to pick Secret Santas – this pen is merely a digital version of this tradition. As it uses only vanilla JavaScript, you can easily embed it into your own site. Just change the names inside the give variable.

Christmas Balls in Pure CSS

These cheerful Christmas balls are written in pure CSS taking leverage of the border-radius rules. The different parts of the balls are set together by utilizing precisely calculated relative positions.

If you want to quickly add a holiday atmosphere to a web page, just insert some of these balls to the appropriate places in a colour that matches the overall design of the site.

Movable Snowflakes

You can make these snowflakes move by hovering over them on a desktop, or by tilting your smartphone. The functionality is provided by object-oriented JavaScript that is smartly used by the developer to create a custom Snowflake class.

The snowflakes themselves are built in CSS3, and the background uses gradients – there are no images in this pen at all.

Holiday Accordion Experiment

This holiday accordion is simply beautiful. If you hover over a tab it comes to focus by expanding a bit, and if you click on it it suddenly pops up and covers the whole page. It’s interesting to note that this pen uses Scalable Vector Graphics (SVG) that are styled with CSS.

SVGs are more powerful than they seem to be at first sight, they can be smartly positioned and designed with the same style rules we use with regular HTML elements.

Flat Pure CSS Snowman

Who said flat design needs to be boring? This lovely snowman can easily add Christmas spirit to any design. There’s no images used for the snowman, it’s completely written in CSS. It’s worth to take a look at the CSS code a bit, and see how the developer uses the :before and :after pseudo selectors to achieve the intended result.

CSS3 Snowflake

You can facilitate the creation of CSS3-only images by using advanced front-end development tools; this well-designed CSS3 snowflake is an excellent example for this. The developer made use of the Jade templating language that compiles into HTML, and the Sass CSS preprocessor to implement this stunning snowflake design.

Christmas Button

Smart designs frequently opt for subtle solutions, just like the snowy Christmas Button in this pen. The dark red background is a perfect choice for a Christmas design; not everything needs to be green after all.

The colours, the gradients, the typeface, and the hover effect make this button very elegant and solemn. You need only a few of them to quickly decorate a site for Christmastime.

Parallax Happy Holiday

If you like parallax scrolling, why wouldn’t you use it for your holiday designs? The developer of this pen smartly experimented with the effect, and used the Parallax.js jQuery plugin in a less common way, the scrolling effect is not vertical as usual, but horizontal. The Christmas atmosphere is intensified by an impressive snowfall

If I had to pick on any flaw of this pen, it would be the colour choice: white letters on a partially white background significantly weakens the accessibility of the design.

CSS Christmas Wrapping Paper

You can create a completely unique Christmas wrapping paper with the help of CSS3. The developer of this pen shows not only one, but six variants for this. The beautiful patterns are achieved by the smart utilization of CSS gradients and the background-blend-mode property.

You can find even more cool examples and a detailed explanation on the developer’s own website.

Box Within a Box

This imaginative design was inspired by traditional Russian dolls (a doll inside of a doll). If you open the outer box by clicking on it, it reveals an inner box that is also the outer box of another inner box. The functionality is written in jQuery, and the exact places of the boxes are set with the help of absolute and relative position rules in the CSS file.

Gift Box with Paper Peel Effect

If you manage to remove the ribbon from this gift by dragging it away, you can take a look at the supercool paper peel effect that reveals the inner contents of the gift. You can read the full tutorial on the developer’s website, it’s a trick that it’s definitely worth to learn. If you just want to use the code you can clone it from GitHub as well.

Holiday Spirit Animated Canvas

Christmas can be a great time for experimenting with new things, just like the developer did it in this pen by using HTML5 canvas as an animated background. The canvas comes before the content (Happy Holidays!) in the HTML file, and it’s set as a background with the help of smart CSS positioning.

The pen also uses a background animation script included as a separate JavaScript file.

Gift Card UI

This eye-catching gift card is not only for Christmas, but can be used at any time when you want to surprise your users with a gift on your website. It doesn’t rely on JavaScript as it’s entirely written in the Sass stylesheet language.

The design makes use of the clip-path CSS3 property that allows developers to display only a specific region of an element, instead of showing its whole area.

Pure CSS Merry Christmas Card

This infinitely laughing Santa – using only HTML and CSS3 – can give you the opportunity to understand how the keyframe animation syntax can be used in practice. In CSS3 you can use the @keyframes rule to specify the rules of an animation, and then you can bind this specified animation to a certain element by using the animation CSS3 property.

You need to add the name of the keyframe as the first value of the animation property, just like the developer did this with the custom keyframes called bodyLaugh, beardLaugh, headLaugh, and mouthLaugh specifically created for this pen.

Xmas Cracker

If you hover over this impressive Xmas Cracker, it reveals a unique Christmas message that’s an amazing way to wish a Merry Christmas to your visitors. The HTML is written in HAML, the HTML Abstraction Markup Language, while the style rules take leverage of the power of the Sass Syntactically Awesome Styesheets language.

The result is smart and awesome indeed. By adding a little more JavaScript it can be even used to deliver custom quotes or messages to the users.

The post 25 Awesome Christmas Projects Hidden in CodePen appeared first on Hongkiat.

How to Create a Glossy Christmas Bauble in Illustrator

Hi buddies! Christmas time is coming and we all know that is a great time for designers to work hard and make some extra money. As an overload of work is a frequent issue, there is a need to accelerate the creation process. We’re here to help.

Today we bring to you a fast and easy tutorial to make a nice-looking Christmas Baubles also known as Christmas ball ornaments to some of you.

At the end of the tutorial you will be know how to create the nice, glossy effect you see on 3D illustrations of metal balls. For this tutorial, we will be using Adobe Illustrator.

Let’s get started.

80 Best Photo Effects Photoshop Tutorials

80 Best Photo Effects Photoshop Tutorials

Discover 41 of the most stunning Photoshop photo effects with step-by-step tutorials. Elevate your photo editing skills today! Read more

Step 1 – Shape And Gradient

With the Elipse tool, make a circle. Use shift to keep it round.

christmas bauble in illustrator

Use the gradient tool to fill the circle. Make a radial gradient in the shape as is shown in the image.

In this case, we made a red gradient so you might use the classic red (100 magenta and 100 yellow in CMYK). In the image you can see that the center of the gradient is not in the center of the ball but a little to the top right. The darker red goes left and downwards to simulate a shadow.

christmas bauble in illustrator

Step 2 – Adding The Glow And Shadow

Copy the circle (Ctrl / Command +C) and paste it back (Ctrl / Command + B) twice, so now we have 3 circles overlapped.

Select the one which is above and bring it down and to the left as it’s shown in the image.

Now with the shift button pressed, we select both circles and we go to the pathfinder tool and select minus front.

christmas bauble in illustrator

Fill the resultant shape with white.

christmas bauble in illustrator

You’ll get an inverted moon, which we will use to add a reflected glow effect on the bauble. Resize and move the shape until it looks like the image below.

christmas bauble in illustrator

Then go to Effect > Blur > Gaussian Blur, and find the right Blur Radius that you are happy with.

christmas bauble in illustrator

After that add transparency to the shape, 50% should do the trick.

christmas bauble in illustrator

Now make a copy of the crescent (Ctrl / Command + C, Ctrl / Command + V) and use the reflect tool to reflect it horizontally and vertically (so that it is opposite the first crescent).

Then change the color to C=0, M=100, Y=100, K=100. As we are in a red background we won’t use only black.

christmas bauble in illustrator

Use Ctrl+2 to block both crescent shape, so we can select the bottom circle without trouble. Copy and paste back (Ctrl+C & Ctrl+B) once again and move it as it’s shown in the pic.

christmas bauble in illustrator

Again we will use the Pathfinder > Minus Front. Then fill it with white and 25% transparency. After that resize it smaller. This will give the bauble a nice glossy effect.

christmas bauble in illustrator

Step 3 – The Metal Top

Let’s create the top hanger. Use the rounded rectangle tool and fill it with a linear gradient of 3 greys and 1 white. Manage the gradient to achieve a metal style look.

christmas bauble in illustrator

After that we will inclinate that shape.

Use the Free Transform tool (E), click the corner, hold it while pressing Ctrl / Command + Shift + Alt and give it the desired shape (you can also reduce the height).

christmas bauble in illustrator

Then make a circle above, copy and paste back (Ctrl / Command + C & Ctrl / Command + B) we resize the one on the top.

Then with both selected go to pathfinder and select Exclude. This way we will crop the circle and have a “wheel” as shown in the pic.

christmas bauble in illustrator

Step 4 – The Decoration

To give the bauble the final touch, you could add stars, snowflakes, lines, circles, etc. In this case we made 3 lines but at this link you will be able to download the final artwork and other examples.

To add the three lines, use the rectangle tool and draw three rectangles, make a group (Ctrl / Command + G) with them and we make a gradient in light brown so it looks golden.

christmas bauble in illustrator

Then Copy and Paste Back the big circle again and bring it to the front. Select rectangles and the copied circle and we will make a clipping mask (Ctrl / Command + 7). This will crop the lines so they fit the circle.

Now select the circle and the rectangles and bring them back (right click > arrange bring to back).

christmas bauble in illustrator

And, that’s it. We really hope you have enjoyed this tutorial and we look forward to seeing your christmas baubles. Thanks for your time. Comments are welcomed.

Click here to download this free vector and 5 other more Christmas bauble.

The post How to Create a Glossy Christmas Bauble in Illustrator appeared first on Hongkiat.

20 Pattern Tutorials For Seamless Repeating Background

Different graphic and web design projects require different design elements and patterns are just one of them. They can be used as a background or foreground in various situations, depending on your needs. You can even use a pattern that you’ve created yourself to add a personal touch to your work.

Today, I’d like to share 20 pattern tutorials for Photoshop and Illustrator that you can use in your future designs. The best part about these tutorials is that you can set your imagination free and customize each pattern as you like. From nature-inspired patterns to more abstract themed ones, there’s plenty for you to choose from. Some of these tutorials require 2-3 hours of your time but it’s definitely worth it.

8 Free Pattern Generators for Repetitive Pattern Backgrounds

8 Free Pattern Generators for Repetitive Pattern Backgrounds

Patterns are widely used in web design as a background. Basically, patterns can be defined as graphics used… Read more

#1

You can channel your excitement for summer with this adorable summer-inspired underwater seamless pattern that features cute marine animals.

Summer Underwater Seamless Pattern
#2

Steven Bonner is an expert in repeating pattern. In this lesson, he guides us on how to create a damask pattern in Photoshop and Illustrator.

damask patterns for wallpaper and homewares
#3

Creating diagonal patterns can be a bit of a challenge but with this manual you’ll be able to do it easily.

Easy Diagonal Pattern
#4

Take a look at this tutorial if you’d like to learn how to create a simple vector geometric pattern in Illustrator. You can play around with colors to customize this too.

Geometric Pattern in Illustrator
#5

Create a repeating pattern that looks like a map with Illustrator. This tutorial is quite long and time-consuming, but the beautiful end result makes it worthwhile.

quirky repeating patterns
#6

This spring floral pattern would make a classy background for a wedding blog. Follow the tutorial if you’d like to recreate this.

Spring Floral Pattern in Adobe Illustrator
#7

This awesome vivid abstract pattern seems like a tunnel to nowhere. By the end of this gudie, you’ll know how to turn it into a retro poster.

geometric pattern for a poster
#8

This pattern is totally mind-blowing. The tutorial uses the method of tracing photos to create this surreal and endless pattern.

vector pattern illustration
#9

Who says Halloween has to be over? Use the Pen Tool, the Blob Brush Tool, and Pattern Options to create this sweet candy corn pattern.

Kawaii Candy Corn Pattern for Halloween
#10

In this guide, you’ll see how to use the Photoshop CS6 Pattern Tool to make repeating elements inside vector scenes.

Master Illustrator CS6's new Pattern tool
#11

Geometric patterns are still pretty trendy. Follow this tutorial to create a colorful cube pattern.

Creating geometric patterns
#12

This honeycomb pattern looks realistic doesn’t it? Maybe you should try it out for yourself…

Sweet Honeycomb Pattern
#13

There are many uses for a diagonal pattern, so this is useful for any kind of graphic design project.

diagonal seamless pattern
#14

You can create this simple abstract geometric background with ease using this tutorial.

Abstract Geometric Background
#15

This manual will show you how to create an Aztec inspired pattern in Inkscape.

Easy Geometric Aztec Pattern
#16

In this tutorial, you’ll learn the process of creating an amazing geometric gradient pattern in Illustrator and Photoshop.

Abstract Blur Pattern Design
#17

Use Photoshop custom shapes to create this interesting pattern.

Web Pattern with Custom Shape
#18

Here’s another cool geometric pattern in this collection you can try out.

Colorful Geometric Pattern
#19

Master the repeating pattern technique with this cool tutorial. It showcases how to create the complex pattern using smart objects and the nudging technique with your arrow keys.

Complex Pattern
#20

This tutorial will teach you how to create a geometric circle pattern in Illustrator.

Bright Geometric Circle Pattern

More Photoshop Tutorials:

The post 20 Pattern Tutorials For Seamless Repeating Background appeared first on Hongkiat.