SASS – mixin for responsive design

In this post, I am going to explain how to use SASS mixin for responsive design which is very powerful way. In CSS, there is a media query you can use to present a different layout for different screen size. However, it would be very tedious to write media query break points in every CSS component you write. What if screen size changes for a phone or tablet? You probably do not want to go through everything to fix it. There needs to be a better way to handle different screen size flexibly and let’s take a look at each READ MORE

CSS – Build Animating Nav Button

Today, we are going to take a look at how to build animating nav button using css properties.Please note that I have learned this from the udemy course by Jonas Schmedtmann. Example As soon as you click the button, you will see there is a cool animation making the button X. This is built by pure CSS properties which we will take a look at it soon. HTML Code checkbox input type is used here to make toggle easier. Please note that the checkbox input is hidden and the navigation__icon class is used to style like a button. CSS Code READ MORE

CSS – Build Cool Forms

Today, we are going to build a cool form using CSS. I am specifically going to use followings. 1. solid color gradients2. sibling selectors3. ::input-placeholder pseudo-element4. :focus, :invalid, placeholder-shown, :checked pseudo classes Please note that I have learned this from the udemy course by Jonas Schmedtmann. Let’s take a look at the final result first Form There is a couple of things to note here. Animation from placeholder to label to indicate the field CSS created radio button cool shape with background image Let’s take a look at the code now HTML Code There are multiple form groups under form READ MORE

CSS – video and shape-outside

In this post, I am going to show how to implement a webpage that plays a background video and let texts floats around the image.Please note that I have learned this from the udemy course by Jonas Schmedtmann.Let’s take a look at the example demo first. Example Demo As you can see in the above example, background video is playing. You will also notice that texts are floating around the image (circle shape) and image gets blurred when mouse hover over the image. It is actually pretty simple to do and let’s take a look at the code! HTML Code READ MORE

SCSS – Flipping Card Component

Today, I am going to implement a CSS card that you can flip round when you hover the mouse using SCSS.Please note that I have learned this from the udemy course by Jonas Schmedtmann.Main CSS properties I use are perspective, backface-visibility, background-blend-mode.Let’s jump to the code directly and explain each part Example HTML Code CSS Code Both front/back card size will be children of card class. Since I use absolute position for the children classes we need to have relative position in the parent. The most important thing is perspective. As you can see in the video, we need perspective READ MORE