Automatically translated.View original post

css perspective+tranform

# Web Site Writing Basics

# perspective # Tranform

# CSS

CSS Perspective is a feature used to create a 3D space for elements on a web page, determining the distance of the audience from the object, making the elements that are transformed (such as rotation) appear as real as what our eyes see in real life, such as objects that are closer to looking larger than objects that are far away, and affecting the depth of the overall picture. The smaller the perspective, the larger and closer the object looks to our eyes, the clearer the 3D dimension.

Perspective working principle

Create a 3D space:

The perspective property will enable 3D space for the subelements being transformed.

Define spacing:

The value of the perspective is the distance from the user to the Z-plane where the object is.

Effect on vision:

Minor Value: Make an object appear larger when it is near, and it has a distinctive dimension.

Very valuable: The depth effect will look more delicate, the object will look flattened.

Application to Transform:

Perspective is often combined with other CSS features, such as transform: rotateY (), to create the illusion of rotating 3D objects.

Difference between perspective and transform: perspective ()

Perspective (features):

Use with the parent Element to create a 3D space together for all converted child Element.

Transform: perspective () (function):

Use directly with the Element to be converted to determine the depth of the object directly.

Example of use

Code

/ * Assign 3D space to container * / .container {perspective: 1000px; / * Define user spacing * /}

/ * Convert child element to rotate and dimensional * / .child-element {transform: rotateY (30deg); / * element rotation example * /

}

2025/9/8 Edited to

... Read moreถ้าคุณค้นหาเรื่อง “tailwind perspective” ส่วนใหญ่จะเจอคำถามคล้ายๆ กันคือ Tailwind มีคลาส perspective ไหม แล้วต้องวางไว้ที่ parent หรือใส่ที่ตัว element เลย ซึ่งแนวคิดมันเหมือน CSS ปกติเป๊ะๆ: “perspective” เป็นระยะมุมมองของผู้ชม เพื่อให้ transform แบบ 3 มิติดูมีความลึก (เช่น rotateY/rotateX แล้วเกิดความเอียงแบบ 3D) 1) วิธีคิดเวลาใช้ perspective + transform (ให้ไม่งง) - perspective = ระยะห่างสายตา ยิ่งค่าน้อย “ยิ่งดูลึก/ใกล้/บิดแรง” ยิ่งค่ามาก “ยิ่งดูแบน/เอฟเฟกต์เบา” - transform (เช่น rotateY, rotateX) = การหมุน/ขยับวัตถุในแกน 3 มิติ ดังนั้นถ้าคุณหมุนการ์ดด้วย rotateY แต่ไม่ได้ตั้ง perspective เลย มันมักจะดูเหมือนหมุนแบบแบนๆ ไม่ค่อยมีมิติ 2) Tailwind มี perspective ไหม? ต้องทำยังไง Tailwind (โดยเฉพาะเวอร์ชันใหม่) จะรองรับผ่าน utility ที่เกี่ยวกับ 3D มากขึ้น แต่ในหลายโปรเจกต์ “perspective” อาจยังไม่ได้มีค่าให้เลือกครบตามต้องการ วิธีที่ชัวร์และยืดหยุ่นสุดที่ฉันใช้บ่อยคือใช้ arbitrary value ของ Tailwind เช่น - ใส่ที่ parent: [perspective:1000px] แล้วค่อย transform ลูกด้านใน เช่น rotateY ตัวอย่างโครงสร้างที่เข้าใจง่าย (แนวคิด): - Parent: ตั้งมุมมอง 3D = perspective - Child: ทำเอฟเฟกต์หมุน = transform 3) ตัวอย่าง Tailwind ที่ใช้จริง (การ์ดเอียง 3D) สมมติทำการ์ดที่เอียงเล็กน้อยตอน hover: - Parent: class="[perspective:1000px]" - Child: class="transition-transform duration-300 [transform-style:preserve-3d] hover:[transform:rotateY(18deg)]" จุดสำคัญคือ perspective ต้องอยู่ “คอนเทนเนอร์” เพื่อให้ลูกข้างในเห็นความลึก และถ้าอยากให้ลูกย่อยซ้อนกันแบบ 3D จริงๆ ค่อยเพิ่ม transform-style: preserve-3d 4) ทำไมบางทีใส่แล้วไม่เกิด 3D? ฉันเคยติดอยู่ 3 จุดนี้บ่อยมาก: - ลืมใส่ perspective ที่ parent (หรือใส่ผิดตัว) - ใช้ rotate (2D) แทน rotateX/rotateY (3D) - ไม่ได้เปิดให้ element นั้น transform จริงๆ (เช่นไม่มี hover: หรือเขียนผิดไวยากรณ์) 5) เลือกค่า perspective เท่าไหร่ดี - ประมาณ 600px–1200px: กำลังสวย ใช้กับการ์ด/ภาพ/ปุ่ม - ต่ำกว่า 500px: มิติจะแรง เหมาะกับเอฟเฟกต์เด่นๆ - 1500px ขึ้นไป: จะดูนุ่มขึ้น เหมาะกับงานที่ไม่อยากให้บิดเยอะ สรุปสั้นๆ: ถ้าตั้งใจทำ css perspective ร่วมกับ transform ใน Tailwind ให้จำว่า “perspective ใส่ที่ parent” แล้ว “transform (rotateY/rotateX) ใส่ที่ลูก” คุณจะเห็นมิติ 3D ชัดขึ้นทันที และปรับความแรงได้ด้วยการเปลี่ยนค่า perspective ตามสไตล์งานของคุณ

Related posts

Choose the best perspective of yourself ❤️
#selflove #girladvice #confidence #confidencetips #confidentvibes
Kailey Anna

Kailey Anna

6920 likes

A book page from 'The Mountain Is You' with highlighted text discussing how rock bottom can be a turning point, leading to a declaration of change and a journey of self-awareness and growth.
A book page from 'The Mountain Is You' with highlighted text encouraging self-directed rage and determination to change one's life and not continue as one is, under the heading 'PREPARING FOR RADICAL CHANGE'.
The black cover of the book 'The Mountain Is You' by Brianna Wiest, featuring a gold mountain graphic and the subtitle 'TRANSFORMING SELF-SABOTAGE INTO SELF-MASTERY'.
This book changed my perspective on everything
Hey there, book lovers! 📚✨ Just dove into "The Mountain Is You" by Brianna Wiest, and it's a total game-changer! 🏔️💡 It's all about turning self-sabotage into self-mastery. If you're ready to conquer your inner mountains and unlock your potential, this one's a must-read. 🌟🧠
Jenna Weems

Jenna Weems

474 likes

HER perspective of Let Me Down Slowly 💔
#letmedownslowly #alecbenjamin #fyp
Lindsey Jade

Lindsey Jade

2192 likes

Tone the back —> force perspective
These exercises will shrink the lower back and (slightly) widen the upper back, encouraging an hourglass shape. Exercise #1 - Lateral pull downs These will sculpt the sides of your back, growing the lats into a funnel (more or less) shape. Exercise #2 - Gorilla rows This will whit
Ashara Wilson

Ashara Wilson

45 likes

An interesting perspective on Black Africans
#selfhelpbooks #lemon8challenge My Current Read 📖 Name of the Book: Black Tax 📄 Plot: N/A 📖 Genre: Self Help 📄 My Favorite Quotes: "Though I drive in the valley of the shadow of death I fear no hijackers, but another fuel increase." 😂 💭 My Thoughts: hmm🤔? ⭐ Star Rating: 4.2
Anesu

Anesu

156 likes

🫶Gratitude journal prompts to shift perspective
Shifting perspective through gratitude doesn't mean ignoring problems but rather training your mind to also see the good that coexists with challenges. These prompts help you develop a gratitude practice that goes deeper than surface-level thankfulness, revealing hidden blessings and reframing
FawnAndFern

FawnAndFern

61 likes

A hand holds a book against a textured grey-green blanket, with the overlay text "this book CHANGED MY LIFE" in white boxes.
The worn black cover of the book "Go Ask Alice" by Anonymous, showing text about millions of copies sold and a companion diary, resting on a grey-green blanket.
An open book displays the first page of "Go Ask Alice," which states it's based on a fifteen-year-old drug user's diary, with an overlay "this is the first page!".
this book shifted my perspective 📚⭐️
📚 Title and Author: Go Ask Alice by Anonymous 🌟 Genre: Memoir 💬 Short Summary: She is a 15-year old girl and is served a drink laced with LSD and that begins her downward spiral with drugs. This is her diary and shows the genuine fear and thought process that she goes through while discoverin
ayersellie

ayersellie

1465 likes

A split image displays satellite views comparing Hurricane Katrina (Cat 3, 125 max winds, 400 miles diameter, 230 miles wind field) and Hurricane Helene (Cat 4, 140 max winds, 822 miles diameter, 370 miles wind field).
To better put it in perspective
#pray
💜 Samantha  )•¥|\|€R 💜

💜 Samantha )•¥|\|€R 💜

220 likes

A natural landscape with a stream flowing through trees, featuring overlaid text "Perspective Art SWIPE" with decorative butterflies and arrows, serving as a cover image.
An illustration of a person sitting on the floor in a bedroom with a distorted perspective. The room is filled with posters, a keyboard, and a bed, creating a unique artistic view.
An illustration of a person sitting on a bed with a colorful quilt in a room. The walls are covered with numerous band posters and artwork, showcasing a unique perspective.
beautiful art form 🌿
enjoy perspective art 🎀 ____________________________________ #beautifulartstyle #art #embracevulnerability #perspective #roomtour #motivation #drawings #gaming #aesthetic #Lemon8Diary
•●◉✿Lynn✿◉●•

•●◉✿Lynn✿◉●•

59 likes

Perspective really is everything 💭
Instead of saying “ugh I have to wake up early for my workout,” I remind myself — I get to wake up, move my body, and have access to a gym… and why not have fun with it too? 🏋️‍♀️✨ Gratitude changes the whole vibe 🤍 #MindsetShift #WellnessJourney #GratitudeAttitude #HealthyMindset #
Sarina Agarwal

Sarina Agarwal

31 likes

Flower Shops from the girl’s perspective 💕
#flowershops #countrymusic #rewrite #girlsperspective #ernest
Emmy Moyen

Emmy Moyen

159 likes

That changed my perspective
#itgurl #selflove #selfimprovement #selfcare
J.Rubyy

J.Rubyy

1902 likes

A motivational image titled 'Perspective is Everything' highlighted in yellow. It lists negative experiences like 'Discomfort,' 'Problems,' and 'Pain,' with arrows pointing to positive reframings such as 'Growth,' 'Challenges,' and 'Power.' The image promotes changing one's outlook on life's difficulties.
Perspective????
Whenever we have problems we always think of the worst however, what if we change the way we think. What if instead we change our negative thoughts with positivity. Just by doing that we can change our whole attitude and outlook on life. Which gives us a new perspective. If you change t
Lakesha

Lakesha

650 likes

Lies Lies Lies from the girl’s perspective
This song is sooo good!! #morganwallen #lieslieslies #countrymusic
Emmy Moyen

Emmy Moyen

2991 likes

FINALLY REALIZING : CHRISTIAN PERSPECTIVE💡
Yk….. God is so cool… And that satanist that we may judge, or that atheist that we may judge is so close to finding God’s love it’s crazy… if only we humble ourselves and ask God if we can give them that nudge 💕💕💕💕🌱 #godlyperspective #p31 #p31women #lemon8er #newlemon8creator #christ
Princess .

Princess .

12 likes

A handwritten list in a notebook titled 'Shift Your Perspective,' showing negative thoughts reframed with gratitude and faith, ending with a summary from 1 Thessalonians 5:18.
✨Shift your perspective✨
It’s time for us to shift our perspective towards our situations. God got us, draw near him and he’ll draw near to you! James 4:8 ✨Scriptures✨ 💕“Draw near to God and He will draw near to you. Cleanse your hands, you sinners; and purify your hearts, you double-minded.” ‭‭James‬ ‭4‬:‭8‬ ‭NKJV‬
Mykala Foster

Mykala Foster

402 likes

Perspective 🤍
#mindset #quotes #kindness #girlhood
Faith Enokian

Faith Enokian

161 likes

A smiling young woman with blonde hair stands outdoors, wearing a light blue sweater and dark vest. The image has text overlay "A verse that has changed my perspective" and a "Swipe" indicator, suggesting more content.
A verse that has changed my perspective
Hebrews 4:15🤌🏼 I knew that Jesus walked this earth as a human but I never fully grasped that while He is divine, holy, and perfect, He was tempted. He felt the feelings I feel. He experienced normal, worldly things like we encounter every day. Jesus knows the hardships I am facing and the battle
Kacey🌿

Kacey🌿

249 likes

4 books to shift your perspective for 2025
2025 is our year and so is every year to come 💕 📍 Boston #thepsychologyofmoney #luckygirlsyndrome #booktok
kendra

kendra

374 likes

Books That Will Change Your Perspective: Part 1
“Show Up As Her - Ten Laws for Reclaiming Your Power, Embodying Magnetic Energy, and Positive Manifestation (Self-Love, Manifestation Book)”💞 This book extensively covers the topic of self confidence, Self Love, & Self Realization. It’s referred to as a self love book that “the big sister
Your Digital Bestie🌷

Your Digital Bestie🌷

77 likes

A young woman in a sparkly silver top and black skirt takes a mirror selfie in a bathroom, smiling. Text overlay reads, "Today was the absolute best day ever."
A city skyline is visible through a window at sunrise, with orange and blue skies. The foreground shows a bed or couch. Text overlay says, "I got to see the sunrise..."
A young woman takes a selfie with an older woman, both smiling, standing next to a canal or river outdoors. Text overlay reads, "I got to give my mom a hug."
Perspective
#mindset #positivevibes #motivation
Faith Enokian

Faith Enokian

1059 likes

PERSPECTIVE
Proverbs 20:30 Sometimes it takes a painful experience to make us change our ways. #perspective United States
ALIGNEDFUTURE

ALIGNEDFUTURE

11 likes

A title slide showing a canvas tote bag filled with books, with text overlayed: 'Books about Palestine, by Palestinian authors (especially stories on displacements and the 1948 Nakba)'. A watermelon and olive emoji are visible, along with a 'Swipe!' arrow.
The cover of the book 'In Search of Fatima: A Palestinian Story' by Ghada Karmi, featuring a young girl. Text above describes it as detailing the writer's experience of displacement, identity loss, and diaspora.
The cover of the novel 'My First and Only Love' by Sahar Khalifeh, depicting a woman in traditional dress. Text above describes it as a poetic account of Palestinian resistance through a young woman's perspective.
Books to Read 🍉 gain perspective of Palestinians
A people who faced displacements and the Nakba of 1948; 📚What is the Nakba? Nakba or "the catastrophe" is referred to as the ethnic cleansing of Palestinians through their violent displacement and dispossession of land and property alike...along with the destruction of their society,
𝓜𝓪𝓭𝓮𝓵𝔂𝓷

𝓜𝓪𝓭𝓮𝓵𝔂𝓷

11 likes

Give me your perspective
Lmk ladies! And you men why do it? Haha lmk! #life #story #GirlsTalk #letstalkaboutit #unfiltered
Jocelyn<3

Jocelyn<3

7 likes

It’s all about perspective ✨
This collage explores how perspective shapes experience. How the same world can feel different depending on where we place our attention. It reflects a grounded kind of optimism, choosing to notice what’s still good without denying what isn’t. #collageart #embracevulnerability #arttherapy
Sarah Montour

Sarah Montour

15 likes

A blank white paper with a silver mechanical pencil rests on a blue drawing board. The text "DRAWING PERSPECTIVE IN BED" is overlaid in yellow, with a gray and red blanket in the background.
A white paper displays initial perspective lines converging to two vanishing points, with a basic building tower sketched. A "FOUR CANDIES 0.9" mechanical pencil lies on the drawing.
A detailed perspective drawing of a multi-story building with numerous windows and architectural features is shown on white paper, placed on a blue drawing board.
Drawing perspective in bed
Morning practice ⭐️Overall rating: /10: Art tips foryou #sketchingideas #unfiltered #viral #trending #art
Ira

Ira

14 likes

One book that’s changed your perspective on life?
Okay I’m going to be honest here….. All of the things Mel talks about in her book are all things I have been doing and implementing wayyyyyy before she wrote about it. In fact, some of these things are legit words out of my mouth way before she came out with this book. But I guess because she’s
Bexx

Bexx

240 likes

A turbulent ocean scene with waves and foam. White text overlays the image, stating "THAT ONE QUOTE THAT CHANGED THE WAY I VIEW MY LIFE :". The Lemon8 logo and username "@anastasia_platenco" are at the bottom left.
The perspective shift i needed🫧
I’ve come to understand that if I’m not changing, I’m choosing to remain in the same place. Growth is a divine process - one that begins with the choices we make. God gives us the power to transform, but it’s up to us to take that step. Every decision to grow is a step toward the life He has pl
anastasia

anastasia

18 likes

A positive perspective on medical school
#medicalschool #medicalstudent #doctor #premed #premedstudent
Sonia | Doctorinthemaking

Sonia | Doctorinthemaking

27 likes

What if Call Out My Name was from her perspective?
[villain mode: activated] 😈 #theweeknd #calloutmyname #narcissist #lyrics #singing #rnb #mydearmelancholy
Lindsey Jade

Lindsey Jade

106 likes

Purple teeth for perspective
From drinking a minimum of bottle of wine a night while also binging throughout the week and weekends my face had become so swollen. Within a month the swelling had gone down! #sober #sobriety #wedorecover #smile #fypシ
Katie Garner

Katie Garner

536 likes

Different perspective?
Wellness Habits 🧘 Habit 1: rise early 🧘 How It Helps Me: meditate, set intention, plan. All in peace and quiet (before the kiddos wake up) 🧘 Habit 2: write out my plan for the day 🧘 How It Helps Me: keeps me focused on my tasks, (even writing in when to take breaks) adhder life saving practice!
G A B Y

G A B Y

2 likes

Perspective ✨🤍🙏🏽
#Focus #Good #dailyroutine #perspective #Lemon8Diary
OneRareTina🤍🌻💛

OneRareTina🤍🌻💛

17 likes

A white page with black text titled "14 THINGS TO REMEMBER," listing fourteen points of advice on self-care, setting boundaries, recognizing toxic relationships, and valuing oneself, attributed to SRWPOETRY.
Shift your perspective during hard times ✨
#Continue #To #pourintoyourself #choosewisely #selfcare #selflove #mindfulness #Lemon8Diary #lemon8creator
OneRareTina🤍🌻💛

OneRareTina🤍🌻💛

7 likes

Perspective Matters
Soul Fuel

Soul Fuel

19 likes

A person's midsection with hands forming a heart over a scar near the navel, wearing a brown bra. Overlay text reads, "DON'T RISK YOUR Life FOR A TAN," emphasizing sun protection awareness.
Melanoma changed my whole perspective
After being diagnosed with melanoma and having several scars on my body, I have become so diligent about sun protection and getting my glow in a safer, healthier way. I absolutely love having tan skin, but it’s definitely not worth risking my life over. I’ve tried countless tanning mousses and this
Briprov

Briprov

2016 likes

The cover for 'I Was a Teenage Slasher' by Stephen Graham Jones, featuring a dark hooded figure with the title in prominent pink lettering.
Books Told from the Killer's Perspective 🔪
I don't know about you guys, but I don't always want to read a romance, a fantasy, or root for the good guy with the morals of a golden retriever. Sometimes, I get into moods where I want to settle down with a novel that's going to leave me conflicted, disturbed, and relentlessly intrig
Mercedes

Mercedes

22 likes

Bible study on Perspective!
The Bible study of the day is on Perspective and how important it is to put a Godly perspective on everything! Key verses: -2 Corinthians 4:18 -Colossians 3:2 -Jeremiah 29:11 #bible reading 🥰 #fyp #fypシ゚viral #i love reading my bible #godlovesyou
Maddie_0415

Maddie_0415

6 likes

I tried to do a perspective drawing🥰
#artbyme😛
TheMaddiGurl💜

TheMaddiGurl💜

73 likes

A person in a cow-print hoodie holds 'The Untethered Soul' book, with text overlay stating it's a book that changed their perspective on everything.
Four images show open spiral notebooks filled with handwritten notes, alongside copies of 'The Untethered Soul' book, indicating deep engagement and note-taking.
A white background displays a numbered list of 20 key concepts and takeaways from 'The Untethered Soul' book, covering topics like self, mind, consciousness, and liberation.
this book changed my perspective on EVERYTHING🤯📖
Hands down my favorite self-help/spiritual book I’ve ever read🥹🤍 This book reframed the way I think & made me finally understand what “you are not your thoughts” ACTUALLY means. l resonated so deeply with every word and felt so much lighter after reading it. I also loveee the analogies he us
Halle Buttafuso

Halle Buttafuso

442 likes

Hair Perspective 🪮
#lemon8diarychallenge fr tho I use to be a productholic… I blame the natural hair YouTubers😭 #afro #afrohair #naturalhairstruggles #naturalhairchronicles
Afrodite

Afrodite

136 likes

Change Your Perspective ✨🫶
If you can change your perspective you can change your mood! #motivation #inspiration
Daily Peptalks Tv

Daily Peptalks Tv

21 likes

gives you so much perspective ✨🫶🏼
when your health is something you can’t take for granted anymore, your perspective changes so much on so many things. and for that im grateful✨🫶🏼 #longcovidrecovery #longcovidawareness #pots #posturalorthostatictachycardiasyndrome #chronicillness
Ally Hwu

Ally Hwu

17 likes

Marry Me from the girl’s perspective!
#countrymusic #marryme #thomasrhett #rewrite #girlsperspective
Emmy Moyen

Emmy Moyen

258 likes

See more