Automatically translated.View original post

css transform

# CSS

# Tranform

# Web Site Writing Basics

CSS 2D Transform Functions is a function used in the transformation feature of CSS to change the shape of HTML elements in 2D such as rotate, scale, skew, and move (translate) without additional JavaScript. These functions allow us to create movement effects and change the appearance of objects on web pages easily.

2D Transform Function Example

Transform: Rotate (30deg);: Rotate the element to 30 degrees.

Transform: scale (2);: 2 times the element.

Transform: skew (30deg);: Incline element.

Transform: translate (50px, 100px);: Move the element to the right 50 pixels and down 100 pixels.

Usage

You can insert these codes into the CSS rules to apply to any desired HTML element.

Code

/ * CSS Transform implementation example * /

. My-element {

width: 100px;

Height: 100px;

Background-color: lightblue;

Transform: Rotate (45deg) scale (1.5); / * Rotate 45 degrees and expand 1.5 times * /

}

2025/9/6 Edited to

... Read moreนอกจากการใช้ CSS Transform 2D พื้นฐานแล้ว ผมยังทดลองใช้ฟีเจอร์นี้ร่วมกับ animation เพื่อสร้างเอฟเฟกต์แบบไดนามิกมากขึ้น เช่น การกำหนด css animation iteration count ที่ช่วยให้อนิเมชันวนซ้ำตามจำนวนครั้งที่ต้องการ ทำให้เว็บไซต์ดูน่าสนใจและโฟลว์ดีขึ้น ถ้าคุณสนใจด้านการออกแบบที่ใส่ใจใน accessibility (a11y) ฟังก์ชันพวกนี้ก็ใช้งานได้ดีโดยไม่มีปัญหากับ screen readers หรือการใช้งานผ่านคีย์บอร์ด เพราะเป็นการเปลี่ยนแปลงที่เกิดขึ้นบน visual element โดยไม่ทำให้โครงสร้าง DOM สับสน สำหรับนักพัฒนาเว็บมือใหม่ ผมแนะนำให้ทดลองใช้ CSS Transform ร่วมกับการจัดวาง layout ด้วย Flexbox หรือ Grid เพื่อสร้างหน้าเว็บที่ไม่เพียงดูสวยงาม แต่ยังตอบสนองความต้องการของผู้ใช้ได้อย่างเต็มที่ สุดท้าย ผมเองใช้หลักการเหล่านี้มาปรับปรุงงานจาก dopefolio ของผม ซึ่งช่วยให้ผลงานโดดเด่นและนำเสนอข้อมูลได้อย่างชัดเจนและสร้างสรรค์มากขึ้น การใช้ CSS transform เป็นเครื่องมือที่ทรงพลังสำหรับผู้ที่อยากเพิ่มลูกเล่นและความน่าสนใจให้กับหน้าเว็บอย่างมืออาชีพ

Related posts

A side-by-side comparison shows a person's 'Before' and 'After' transformation of their midsection, specifically addressing an 'apron belly.' The 'Before' image shows a fuller stomach, while the 'After' image displays a visibly flatter core, indicating successful core transformation.
Core workouts that transform my apron belly
I swear by these workouts! I have notice a huge change in how my apron belly used to be and how strong my core has been after 2 csections. You can do this at home !! Standing dumbbell march 3 sets of 10-15 (each leg) Lying knee raises 3 sets of 10-15 (with weight for extra burn) Bird do
Unicornliftzz

Unicornliftzz

1044 likes

✨ Transform your Body with a Simple Trick! ✨

✨ Transform your Body with a Simple Trick! ✨ No more impossible diets! Scientists have discovered a method to activate fat burning 3X faster, without drastic changes to your routine! ✅ Works while you sleep ✅ Tested and approved ✅ Quickly visible results 🔗 Click on the link in the bio an
Fitness Fusion

Fitness Fusion

2174 likes

Transform Your Body & Achieve Your Goals
#weightlossandfatloss #fitnesslifestyle #fitnessjourneymotivation #fitnessjourney #fitnessjourney
Fitness IQ

Fitness IQ

25.5K likes

A person is on a StairMaster, viewed from behind, with text overlay '10 mins of BURN For Big 🍑 & sexy Stomach Summer Glow Up Guide STAIR MASTER ROUTINES'. The image promotes StairMaster routines for glute and stomach transformation.
A text graphic outlining a 10-minute StairMaster Warmup routine with increasing levels (8 to 15) and duration, along with tips on consistency, avoiding handrail reliance, breathing control, and adjusting levels.
A text graphic detailing a 15-minute StairMaster Cool Down routine with varying levels (5 to 15) and duration, providing tips on maintaining consistent steps, not skipping cooldown, breathing, and level adjustment.
Transform Your 🍑 BOOTY & ABS 🔥 One Step at a Time🥵
✨Tips✨ 🩻Posture: Keep your back straight, core engaged, and avoid leaning on the handrails. 💧Hydration: Always stay hydrated, especially during intense workouts. Drink water before, during, and after your exercise. 🦶Foot Placement: Step evenly on each pedal, ensuring you’re using the full
Chalie_Baker

Chalie_Baker

8114 likes

Ready to transform your core???
📌 this 🔥core routine for later #CapCut #abworkouts #coreworkouts #coreexercises #excercisesforwomen
Sharika McDuff

Sharika McDuff

372 likes

A woman in athletic wear poses in a gym, with overlay text "how to become unrecognizable in 1 week" and the Lemon8 logo.
Four raw eggs in a pan, with overlay text detailing protein intake, healthy fats like avocado oil and egg yolks, and incorporating fruits/veggies for glowing skin.
A person's legs are visible with overlay text about changing music, environment, dropping negative people, and challenging oneself, alongside two music player interfaces.
TRANSFORM INTO YOUR BEST SELF IN 1 WEEK!
Are you ready to transform like never before? Give yourself one week and watch yourself glow… When you start incorporating these healthy habits into your life, you will start to notice positive vibes all around. I dare you to try this challenge - no joking around. Analyze the people around you who
Zazel Rosado

Zazel Rosado

2299 likes

Transform your Body & Skin with Fruit!!!🫐🥝🍊
✨Glowing up✨ It’s not just about hitting the gym or having a killer workout routine, though that’s definitely a big part of it. To truly glow up, we need to focus on our health as a whole, and that means paying attention to our nutrition too. Yes, working out is amazing and can do wonders for yo
Chalie_Baker

Chalie_Baker

1293 likes

Transform Your Bath into a Spa-Worthy Detox 🌸
Imagine stepping into a warm bath that soothes your mind, rejuvenates your skin, and detoxifies your body—all in one luxurious soak. This Forest Bathing Detox Bath is more than just a relaxing escape; it’s a health and beauty powerhouse. Infused with the grounding aromas of CBD botanicals, the nour
Ashlee Sunshine

Ashlee Sunshine

2865 likes

Transform Simple Glasses into Luxe Home Decor
#glassdecor #DIYonABudget #dollartree
Dazzling Designs By Denise

Dazzling Designs By Denise

4401 likes

The image presents an hourglass workout routine with exercises for stomach, back (including bent over rows), butt, and legs, alongside active rest days and health tips. It features a woman in green workout attire, a juicer with green vegetables and limes, and a relaxed woman, all promoting a fitness and healthy lifestyle.
✨Transform your body and feel amazing✨
⏳ Hourglass Workout Routine 🌴 💖 **Stomach & Back (Mon-Fri):** - 40 bicycle crunches - 20 side crunches (each side) - 20 crunches - 40 mountain climbers - 20 plank twists - 30 sec plank 💖 **Butt & Legs (Mon, Wed, Fri):** - 50 weighted hip thrusts - 40 squats - 40 fire hydrants
Uhhmerika

Uhhmerika

488 likes

A woman in black workout attire takes a mirror selfie in a gym, with text overlaying "TRANSFORM BOOTY BUILDER WORKOUT SWIPE". She is showcasing her glutes, inviting viewers to swipe for the workout details.
A woman in a white top and gray leggings performs Romanian Deadlifts (RDLs) with a barbell in a gym, demonstrating the first exercise of the glute workout.
A woman performs hip thrusts on a specialized machine with a heavily loaded barbell, illustrating the second exercise for glute development.
TRANSFORM YOUR GLUTES: Booty builder workout🍑
Grow & transform your glutes with these 5 exercises! If I had to pick the perfect glute workout for the gains, this would be it⬇️ 1. RDL’s (barbell or dumbbell) 3 x 8, 1 x 15 2. Hip thrusts 3 x 6-8, 1 x 12, 1 x 20* 3. Smith machine reverse lunges 3 x 10-12 per leg 4. Glute Medius Cable Ki
Sophia Cepero

Sophia Cepero

39 likes

Glute Gains: Transform Your Workout✨
Glute Gains: Transform Your Workout #gluteworkout , #fitnessmotivation , #gymtok , #glutes , #workout #homeworkouts #womenworkout #athomeworkout l Dallas
FitLikeRosy

FitLikeRosy

63 likes

Transform your Dumbbell Rows with these pro tips!✨
Transform your Dumbbell Rows with these pro tips! 🔥 📲 LINK IN BIO for more workouts and fitness tips! 1️⃣ Elevate your seat 2 levels for a deeper stretch. 2️⃣ Hold dumbbells slightly higher for better leverage. 3️⃣ Relax your traps to target your lats more effectively. 4️⃣ Scoop the dumbbe
Lily Rose🏋️‍♀️

Lily Rose🏋️‍♀️

236 likes

Transform Your Leftovers into This DOPE Sandwich 🥪
Transform Your Leftovers into This DOPE Turnip Sandwich! 🥪✨ Got a fridge full of leftovers? No problem. Turn them into a masterpiece that’s packed with flavor and, of course, more turnips. Because life’s better with turnips, right? Let’s get to it! What You’ll Need for the Turnip Slices: &
Turnip Vegan

Turnip Vegan

1192 likes

3 Pilates Core Moves That Transform
These aren’t just “ab” exercises—they’re powerhouse builders. If you’re craving deeper strength, better posture, and a true connection to your core… start here. 1. The Hundred – Wake up your deep stabilizers and ignite your breath-to-core connection. 2. The Roll-Up – Buil
Movewithlaurenj

Movewithlaurenj

93 likes

Transform Your Body & Achieve Your Goals
#weightlossandfatloss #weightgoals #fitnesslifestyle #fitnessjourneymotivation #gymmotivation
Fitness IQ

Fitness IQ

3217 likes

A dark blue background with the title 'CSS KNOWLEDGE TEST!' and a purple lightbulb icon. Text asks 'How many can you get right? comment your score below!' with a Lemon8 logo and username.
A dark blue background with a white box containing 'Q1: What does the CSS property justify-content: space-between; do?' and four multiple-choice options (A-D).
A dark blue background with a white box containing 'Q2: Which unit is relative to the parent element's font size?' and four multiple-choice options (A-D).
💡 Think you know CSS? Let’s find out!
💡 Think you know CSS? Let’s find out! Take this short quiz and see how many you get right 😎 Comment your score below 👇 #CodeWithAysha #CSSQuiz #LearnToCode
Aysha

Aysha

3 likes

Transform Your Body & Achieve Your Goals
#gymmotivation #weightlossandfatloss #weightgoals #fitnesslifestyle #fitnessjourney
Fitness IQ

Fitness IQ

1130 likes

📚 3 Books to Transform Your Mindset & Gatherings!
Looking for books that shift your perspective and elevate your life? These three reads will help you host better, think freer, and embrace your best self. ✨ 🌟 The Art of Gathering – Host with Purpose 💡 Define the “why” behind your gathering. ⚡ Set the tone from the very first moment. 🚀 The Cour
Lam 🌎🪡📚⏲️

Lam 🌎🪡📚⏲️

653 likes

Training guide to transform your glutes🍑
How to train to grow & transform your glutes⬇️ The first thing to know is what exercises to do to achieve your goals. My top exercises for glute growth are -hip thrusts, glute bridges, RDL’s, squats, Bulgarian split squats, lunges, kickbacks, abductions, & glute focused back extensio
Sophia Cepero

Sophia Cepero

92 likes

Cheesy Beef Stuffed Potato Pancakes 🥔✨ Transform
Cheesy Beef Stuffed Potato Pancakes 🥔✨ Transform your mealtime with our Cheesy Beef Stuffed Potato Pancakes! Crispy on the outside, bursting with juicy beef and melted cheese on the inside, these pancakes are not just a dish but a delightful experience. Perfect for a cozy family dinner or a fest
louiseditesenoya

louiseditesenoya

185 likes

Come shopping with me at five below 💖✨
Transform your space without breaking the bank! 🍋✨ Discover budget-friendly decor at 5 Below that makes every room pop! #Lemon8Finds #RoomGoals Chicago
Shanti🙃🥰

Shanti🙃🥰

111 likes

A title slide for 'CSS ESSENTIALS Part 17 CSS TRANSFORMATIONS,' featuring 'Rotate, Scale, Skew, and More' with abstract colored squares on a dark blue background.
An explanation of 'What is CSS Transform?' showing a 'Before' square and a rotated 'After' square, illustrating how transforms change an element's appearance without affecting layout.
A slide detailing the 'rotate()' CSS transformation, showing an arrow rotating from 0° to 45°, with text explaining its function and uses for icons or hover effects.
Master the Magic of CSS Transformations!
#webdesigner #csstransform #womenintech #codewithaysha
Aysha

Aysha

5 likes

Get ready to transform your room
The lighting definitely enhanced my wall 😍 #roomtransformation #lighting #wallart #walllights
Arbeilla Nichole

Arbeilla Nichole

2736 likes

CSS Cheat Sheet
Essential CSS tricks every developer needs! 🔥 Save this for your next project - covers flexbox, grid, animations, and responsive design in one handy reference. Perfect for beginners and pros alike! 💻✨ #CSS #WebDevelopment #Coding #Programming #Developer
EM

EM

4 likes

These workouts literally transform my back!!!
#backworkouts #bodycare #Fitness #workoutroutine #gymlifestyle #summerbod #healthylifestyle2024
Looms

Looms

199 likes

✨💪Transform Your Future Self with ChatGPT 🌸✨
I told ChatGPT that I didn’t want to workout today and this is what it said: Prompt: Tell me something that will destroy me so much that it will make me exercise daily. 🌟 Think of exercise not as a chore 🥱 but as a way to claim back your body 💪 and health 🩺, one day at a time 🌅. Imagine a f
Maya

Maya

615 likes

Transform your body, transform your life!
Join my workout program link in my bio🤩 #Fitness #summerbod #Lemon8 #gymmotivation
Sophie Jane

Sophie Jane

171 likes

Transform your core with Pilates at home
If you’re looking to lean out your core then look no further! This is a beginner-friendly deep core workout. One of the best ways to train your deep core through Pilates, so this is a Pilates-inspired workout. Details⬇️ Exercise 1: Bird dogs 2 x 12 per side Hold the extended position for 3 s
Sophia Cepero

Sophia Cepero

77 likes

Row workouts to transform your back
Rows are the key to grow a bigger back. Targeting your upper back muscles as well as your lats 💪🏽 There are so many ways to do rows. However these are my favorites to do and can be performed at any gym, since none of them require fancy equipment. Give these a try and watch your back grow! #
Mary Mares

Mary Mares

39 likes

Furniture makeover inspiration: Transform trash!
Love a good thrifted find turned beautiful ❤️ #furnitureflip #furnituretransformation #furnituremakeover #paintedfurniture #blackfurniture #furnitureflipping
HandcraftedHavn

HandcraftedHavn

978 likes

Transform your online presence in 30 days !💗
Hey, boss babes! Want to shine bright in the digital world? Digital marketing is your ticket! It's all about promoting your brand, products, and services through social media, search engines, and email. From Instagram-worthy content to SEO secrets, we've got you covered! Join us for expe
WealthyMama✝️✨

WealthyMama✝️✨

18 likes

A woman in a black blazer and shorts holds black high heels in a hallway. Overlay text introduces "8 boundaries you can set without guilt - because protecting your peace is a form of self-respect, not selfishness."
A woman in a black blazer and shorts, wearing black high heels, poses in a hallway. Overlay text states: "I need time to think before I decide Pressure is not love. Take your space to make aligned choices."
A woman in a black blazer and shorts, holding black high heels, gestures in a hallway. Overlay text reads: "Please don't raise your voice at me. Disrespect isn't part of any healthy conversation. You can walk away from it."
8 boundaries that will transform you 🫶🍋
At some point, you have to stop apologizing for choosing you. Setting boundaries isn’t about being rude or distant — it’s about honoring your peace, protecting your energy, and showing up for yourself the way you do for everyone else. You don’t owe everyone access to you. You don’t have to say
@sheisaworkofart

@sheisaworkofart

123 likes

A neatly made bed with white bedding, two pink throw pillows, and a light gray quilted blanket. Two framed botanical prints hang above the headboard. Text overlay reads, 'How I transformed my bed on a budget'.
A brown and white dog lies on a bed with beige knitted pillows and a gray comforter, representing the 'Before' state. An inset image shows a person and a dog on a similar bed.
A brown and white dog rests on a bed with white bedding, pink throw pillows, and a light gray quilted blanket, showcasing the 'After' transformation. The room has gray walls and a white nightstand.
How to transform your bed on a budget ✨
Does updating your home decor count as a hobby? 🤭 If not, it still won’t stop me from continuing to do it! One of the biggest projects I focused on in 2024 was our bed. As someone who creates a lot of self care and routine content, I desperately wanted to update our entire bed - the bed frame, bedd
Alexandra

Alexandra

531 likes

How I transform my friend bedroom😱😳
Small bedroom transformation 😳😱. My friend wanted a grey, white and black theme . guys did I deliver #bedroomtransformation #bedroomglowup #bedroommakeoverideas #bedroomideas #bedroomrenovation
Fitwithpoupee

Fitwithpoupee

3061 likes

A smartphone displays the Snipd app with a podcast transcript, alongside a notebook and Apple Pencil on a desk. The image is overlaid with text: 'App to Transform Your Podcast Listening'.
A smartphone shows the Snipd app playing a 'HUBERMAN LAB' podcast with a 'Snip it' button. Text explains how to create a snip, highlighting the app's function to capture podcast moments.
A smartphone displays the Snipd app's transcript editing interface, showing highlighted text and options to adjust start/end points. Text describes using headphones to highlight snippets for AI-generated summaries.
App to Transform Your Podcast Listening
Transform your podcast routine with Snipd A great AI tool that turned my passive listening into a powerhouse of learning! 🎧 As a podcast enthusiast and avid learner, Snipd has become my go-to platform for converting those fleeting moments into lasting knowledge. With just a tap on my headphones
Reverelia

Reverelia

247 likes

A graphic titled "50+ BEST AI TOOLS TO REPLACE ENTIRE TEAMS" featuring a central robot surrounded by eight categories of AI tools: Image, Video, Idea & Research, Writing Tools, Chatbots, Code, Websites, and SEO, each listing various tools with their logos.
A numbered list titled "Image Tools" presenting 11 AI tools for image creation, including Midjourney, Stable Diffusion, and DALL-E 3.
A bulleted list titled "Image Tools" describing tools to elevate visual content creation, including Midjourney, Stable Diffusion, and DALL-E 3.
🤖 Ultimate AI Tools to Transform Your whole team
Ready to supercharge your productivity with AI? Here's a curated list of over 50 AI tools that can replace entire teams! 🌟 ---- 🖼️ Image Tools Elevate your visual content creation with these powerful tools: • Midjourney • Stable Diffusion • Flux • Leonardo AI • Designs.ai • DALL-
Valder

Valder

687 likes

Transform Your Body & Achieve Your Goals
#gymnastics #fitnesslifestyle #fitnessjourneymotivation #fitness #fitnessjourney
Fitness IQ

Fitness IQ

287 likes

The cover image for a CSS Cheatsheet for Beginners, featuring the CSS3 logo and the text "Learn the most-used properties in one place!" on a dark blue background.
A CSS Cheatsheet section detailing properties for Background (color, image, repeat, position, size), Border (border, radius, top), and Outline (outline, offset) with example values.
A CSS Cheatsheet section outlining properties for Position (relative, top, left, z-index), Size & Dimension (width, height, max-width), and Float & Clear (float, clear) with example values.
CSS CHEATSHEET for Beginners
#css3cheatsheet #learncss #webdesignbasics #frontendtips #codingforbeginners
Aysha

Aysha

31 likes

- Transform Your Everyday Routine🌷🧘‍♀️🗓️
• Yuka ~ Yuka is an app that scans food and cosmetic products to evaluate their health impact. It breaks down ingredients, showing users which are safe and which might be harmful, providing a score based on their nutritional value and health effects. — I started using Yuka to make better choi
Brooke˚₊‧♡ ‧₊˚

Brooke˚₊‧♡ ‧₊˚

292 likes

Lets transform that spare room into a theater room
💕Shanell K. DiLaurentis 💕

💕Shanell K. DiLaurentis 💕

30 likes

A beige graphic titled 'DAILY TIPS 7 Golden Rules for a Happier Life' by MARKETERBABES. It features a large number 7 and three puzzle pieces, one with a heart, on a light background. Lemon8 branding is at the bottom.
A beige graphic listing seven golden rules for a happier, more fulfilled life, including making peace with the past and not comparing oneself to others. It's presented by MARKETERBABES on Lemon8.
A beige graphic with 'Thank You for the read!' and engagement prompts: 'Like it? Double-tap!', 'Tell us what do you think.', 'Helpful? Share with your friends.', and 'Save it for later.' It includes a megaphone icon and MARKETERBABES Lemon8 branding.
Ready to transform your mindset? 🪐
Embrace these powerful truths and watch your life change for the better. Remember, happiness starts from within. By making peace with your past, you free yourself to fully enjoy the present. Understanding that what others think of you is none of your business allows you to live authentically. Gi
Elyz | Creator

Elyz | Creator

2505 likes

Transform Your Hair Naturally 🌿✨
Don’t forget to like follow & save for later 💌 #hairdye #diyhaircolor #naturalbeauty #hairtransformation #fyp
BeautyNurture

BeautyNurture

129 likes

A bright, sunlit room with a large window, sheer curtains, a green plant, and a rug on a wooden floor. The text 'JOYFUL HABITS' is prominently displayed, setting a positive tone for mood-boosting habits.
✨ 10 Mood-Boosting Habits to Transform Your Day ✨⁣
1. Embrace Nature: Find peace in green spaces. 🌳⁣ 2. Stay Active: Dance, hike, or yoga your way to happiness. 💃🚶‍♂️🧘‍♀️⁣ 3. Cultivate Gratitude: Reflect on the little joys. 📝❤️⁣ 4. Nourish Your Body: Eat balanced, feel balanced. 🍎🥗⁣ 5. Stay Hydrated: Sip your way to a better mood. 💧🍋⁣ 6. Prior
eva

eva

25 likes

A woman in grey activewear takes a mirror selfie in a gym locker room, with a neon sign above reading "WINTER ARC SPLIT" and a reflection of a "PROTECT YOUR THINGS" sign.
A woman performs leg presses on a machine in a gym, with the text "MONDAY: GLUTES" overlaid, indicating a glute-focused workout.
A woman in black activewear and headphones performs bicep curls with dumbbells, with the text "TUESDAY: UPPER BODY" overlaid, illustrating an upper body workout.
What workouts I’m doing to transform by Dec 31
Here’s the workout split I’m following to have a transformation by the end of the year! I want to mostly focus on building my lower body while still including upper body work 2x per week. MON: Glutes, doing hip thrusts, squats, and kickbacks. TUES: Upper body, doing bench press, lateral ra
Catie Strong

Catie Strong

56 likes

A woman in a gym, flexing her bicep, with text overlay 'Let's Hit Core Plank Shoulder Taps' and an arrow pointing to her core, introducing the exercise.
A woman demonstrates the starting plank position on a mat outdoors, with text instructing to begin in a straight line with core engaged.
A woman performs a plank shoulder tap, lifting one hand to tap the opposite shoulder, with text explaining to keep hips stable.
Transform Your Core: Plank Shoulder Taps
Plank shoulder taps are an effective exercise for strengthening the core while improving stability and balance. By alternating taps on each shoulder, you engage the deep core muscles, including the transverse abdominis and obliques, which are crucial for core stability. This movement also challenge
Sky | CPT

Sky | CPT

30 likes

See more