September’s CodePen challenges
Tags: webdev, css, productivity
Published: 2019-10-09 12:36:46

---
title: September’s CodePen challenges
published: true
date: 2019-10-07 21:39:38 UTC
tags: webdev, css, productivity
canonical_url: https://itsmenatalie.com/blog/2019/10/september-codepen-challenges/
---

[![Limitations CodePen Challenge hero image](https://cdn.sanity.io/images/0ugmrqfk/production/5b08d820ffc6d09b06b1eb1b7d10388fbcb50230-1280x854.jpg?rect=0,67,1280,720&w=1200&h=675&auto=format)](https://cdn.sanity.io/images/0ugmrqfk/production/5b08d820ffc6d09b06b1eb1b7d10388fbcb50230-1280x854.jpg?rect=0,67,1280,720&w=1200&h=675&auto=format "September’s CodePen challenges")

September’s [CodePen.io](https://codepen.io/challenges) challenges brought us new fun opportunities to improve our programming skills. The theme was really unique – each week we had to follow a different type of a limitation. I’ll show you what I’ve designed with a short description. So sit comfortably and let’s embrace the limitations together!

The first week of the challenges was called “Think small”. Its limitation was a specific size within which we had to design – 100 x 50 pixels. To avoid creating something simple like a button I started looking for inspiration. The theme reminded me about old retro games and pixel arts which had this type of restrictions. As a huge fan of PacMan – the choice was easy. My main idea was to create a loader where a character just appears on the left side and disappears on the right side. The difficulty I had to embrace was to find all the colours from the first edition of the game. With established colour palette I’ve created the basic animation of Pacman. But it wasn’t enough. After adding small bits like border on the top and the bottom I’ve decided to add running away ghosts and this was a nightmare. I’ve never expected that creating these creatures would be so difficult! But at the end of the day, I am satisfied with the result.

{% codepen https://codepen.io/ItsMeNatalie/pen/dybVvRq %}


Week 2 was focused around number 5. Participants had to create anything but the limitation was to use at most five lines of code for each language. “5 lines of HTML, 5 lines of CSS, 5 lines of JavaScript”. Of course, a line is a really subjective thing as you can minify your code – but there is no fun in bending the rules.

The most challenging part this week was to come up with an idea. Each design I tried to create wouldn’t fit in 5 lines of code. Finally, I’ve decided to create an animated loader. Each dot had been created as SVG and looped in Slim. To use SCSS effectively I wrote only keyframes of the animation sequence. Styling elements was the last bit I struggled with. In order to do that I’ve created an array with colours in JavaScript and assigned each of them using loop function. Thanks to that I could also attach the delayed animation to every element.

{% codepen https://codepen.io/ItsMeNatalie/pen/OJLZmQd %}

The 3rd week was the most difficult one so far. The visual output had to be reached by using black and white colours along with the letter “A”. My main idea was to use different types of font to create a landscape. In the beginning, I wanted to create a beach where [Turret Road](https://fonts.google.com/specimen/Turret+Road) would be used to create houses and [Monoton](https://fonts.google.com/specimen/Monoton) to form waves. Unfortunately, I couldn’t find enough free to use fonts to create everything I needed. I’ve decided to create a flower with animated butterflies after scrolling through Google Fonts for a long time. And here it is!🙂

{% codepen https://codepen.io/ItsMeNatalie/pen/eYObeRx %}

The last week’s challenge came up looser as the only restriction was to use arrows as a brush. And as you know there are a lot of types of arrows – twisty ones, long ones, short ones, etc. I started to look for inspiration in wallpapers (!) and I found [a blue Japanese pattern](https://i.pinimg.com/originals/9b/94/0a/9b940a7567b15a1e5b03029c573e9c45.jpg) which I really liked. I decided to achieve it by rotating different colours of squares nested one inside the other. In the end, I’ve switched colours to greenish palette and add a small box-shadow below each arrow to create depth.

{% codepen https://codepen.io/ItsMeNatalie/pen/OJLYbrr %}

It was my first participation in CodePen’s monthly challenge. I’m really surprised how much it allowed me to explore my imagination. I had always wanted to create a unique loader and finally, I had an opportunity and idea to do that. What’s more, I fell in love with patterns and I definitely will create more of them from now on. Today a new theme for October’s challenges has just been announced and I’m already thrilled with what’s coming next!