DEV Community

Cover image for Let's understand the CSS scale property ๐Ÿคจ
๐Ÿšฉ Atul Prajapati ๐Ÿ‡ฎ๐Ÿ‡ณ
๐Ÿšฉ Atul Prajapati ๐Ÿ‡ฎ๐Ÿ‡ณ

Posted on โ€ข Edited on

1

Let's understand the CSS scale property ๐Ÿคจ

Hey coding people,

Hope you guys doing great,

This is post is a part of our 20-day transition property post.

In this post, we will learn and play with CSS transform's scale property.

Lets first understand the meaning of scale, according to google scale means ruler, gauge, dimension, etc.

In words use of CSS, scale property is to scale up and scale down the size of an element. There are four variations in scale property which is like this.

  • transform: scaleX(2); /* Targetting only X-axis */
  • transform: scaleY(4); /* Targetting only Y-axis */
  • transform: scaleX(0.5) scaleY(2); /* Targetting X-axis and Y-axis both */
  • 100% { transform: scale(0.5, 2); } /* Targetting X-axis and Y-axis both with shorthand property */

Now to memories your this concept play with these codepen project.

And if you guys interested in my free website templates please download them here ๐Ÿ‘‰AtulCodex Marketplace ๐Ÿช.

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how theyโ€™re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay