๐ Do you want to learn
โ What is a box-shadow?
โ How to use box-shadow?
โ What is X offset?
โ What is Y offset?
โ Multiple values with box-shadow?
โ So, this thread is for you!
๐ Learn step by step with me :)
#webdev
A Thread ๐งต โ
โ First of all, we have to know, what is the syntax of the box-shadow?
๐ ๐๐๐-๐๐๐๐
๐๐ : ๐ฟ-๐๐๐๐๐๐ ๐-๐๐๐๐๐๐ ๐๐๐๐ ๐๐๐๐๐;
๐ ๐ฟ-๐๐๐๐๐๐
โ Distance in the X-axis from the left edge of the box.
๐ See the "white" part!
๐ ๐-๐๐๐๐๐๐
โ Distance in the Y-axis from the top edge of the box.
๐ See the "white" part!
๐ ๐-๐๐๐๐๐๐
โ But when we set the values as Y offset then the shadow of that box has moved down as they specified.
โ Or, moved 100px from the top to down.
๐ See the image!
๐ ๐ฟ-๐๐๐๐๐๐
โ Similarly, when we set the values as X offset then the shadow of that box has moved right as they specified.
โ Or, moved 100px from the left to right.
๐ See the image!
โ But, when we set ๐ซ๐ธ๐-๐ผ๐ฑ๐ช๐ญ๐ธ๐ : 0 0 0 ๐๐ฑ๐ฒ๐ฝ๐ฎ;
โ Then the shadow of the box will not be visible to the user.
๐ See the image!
โ Now, if we set the blur value then the shadow of the box will be visible to the user.
๐ See the image!
โ We can also set multiple values as the values of the box-shadow.
โ Do not forget to separate these values with a comma( , )
โ Remove comma( , ) from the last value.
๐ See the image!
๐ See the result in the next thread!
๐คฉ Result of the above image.
If you like this make sure to:
1. Follow me @ATechAjay
2. Retweet the first tweet.
3. Turn on the notification to never miss these amazing tweets.
Thank you so much for staying to the end of this thread.
Share this Scrolly Tale with your friends.
A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.