I’ve always admired people who create single-
div illustrations in CSS. One
div, multiple background layers, tons of CSS code, and boom! You have an illustration. I always thought that it must be challenging and I could never create such a thing. I was wrong.
To create a simple image, you only need to know one thing: how backgrounds work in CSS. That’s it. You don’t have to use CSS variables. They help to maintain clean code. It’s much easier to read those images with variables, but it’s not required.
Let’s start with something straightforward. …
HTML5 achieved W3C recommendation in 2014 and added a lot of new tags. Some of them, like
<footer>, are semantic replacements for the commonly used
<div>. Everybody was talking about those tags, but there a lot of different and lesser-known ones. In today’s article, let's discover six form-related HTML elements you might not know.
A lot of new developers create identical landing pages from the same template (I wasn’t any different). As a result, job applicants are drowning in a pile of CVs and other portfolios.
Nowadays, it’s hard to get your first job without impressing somebody with your portfolio. Everybody is creating weather apps, but does everybody have custom CSS-based images in theirs? Let’s create unique images to boost your portfolio.
There are multiple shapes that we can create in CSS, so why not create custom CSS images instead of stock photos? These will cut some unnecessary requests and speed up your website; moreover, they allow you to bring some life to your site.
I don’t want to create the entire app here, only images that you can use to build one. …
Last year’s neumorphism trend was horrible and awful. In 2020 I expected something even worse, but Michał Malewicz, the creator of the neumorphism style, wrote about something fresh and good-looking — glassmorphism style.
Let’s take a look at it.
Glassmorphism is a new trend which is getting more popular on services like Dribbble and Behance.
Making various shapes in CSS is easy. Squares and rectangles are the most common and natural shapes in web development. You need to add width and height, and that’s it. Then add border-radius and you have circles and ovals.
More complex shapes require using
:after pseudo-elements or more HTML. That gives us two more shapes to create something complex. In terms of creating different shapes, your best friends will be
Most of the shapes below designers would export as an image, but as we know — we should replace simple images with CSS to speed up our website. …
Improving the performance of a website is serious business. Most people don’t realise how much standard stock photo weight.
My blog was built in Gatsby because I wanted it to have the best performance with images. High-quality images are huge and very heavy; that’s why we should always optimise them.
Most buttons are boring. Solid, standard borders. Most of them are not aligned correctly. In today’s article, let’s learn how to create a gradient colour button with animated borders and text! One single CSS property will handle all the animations.
Let’s start with a basic outline button with hover. It can be created like this:
<a href="/" title="Hello button" class="btn">Hello</a>
Better late than never
This relatively simple (but still requiring a lot of work) page, gave me a good start to create the whole page.
I’m a frontend developer and cofounder / management partner / whoever in small Polish softwarehouse / agency called Hype4. …