3d Layer Effect: CSS Tutorial (Day 26 of CSS3 in 30 Days)

3d Layer Effect: CSS Tutorial (Day 26 of CSS3 in 30 Days)

freeCodeCamp.org

5 лет назад

40,714 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Peerz
Peerz - 21.10.2022 03:38

thanks a lot, was finding it really hard to grasp 3d rotation till I watched this vid

Ответить
Atul Mishra
Atul Mishra - 23.04.2022 23:57

You just introduced me with 3d css..in a surprisingly smooth way

Ответить
Abhi
Abhi - 03.04.2022 09:15

Finally found Atom!!

Ответить
N.N. fard
N.N. fard - 09.03.2022 05:36

👌🏻👌🏻👌🏻👌🏻🙏🏻🙏🏻🙏🏻🙏🏻🌸🌸🌸🌸🌸

Ответить
Sridhar Sridhar
Sridhar Sridhar - 29.04.2021 07:33

The images in dropbox was not like you described in the vedio,it's totally different from the lecture

Ответить
Karen
Karen - 05.04.2021 18:45

Thanks!

Ответить
Wellington Rodrigues
Wellington Rodrigues - 14.03.2021 02:31

To solve the problem with the weird transition he shows in the end (when you hover, come out and hover again), add the fallowing highlighted line to your code:

.layers img {
position: absolute;
max-width: 100%;
height: 100%;
transition: all ease 1600ms;
transform-style: preserve-3d;
transform: perspective(1200px);
}

Ответить
Siyah Lider
Siyah Lider - 17.02.2021 06:18

Love from Turkey

Ответить
Vignesh Bhaskar
Vignesh Bhaskar - 17.11.2020 18:14

Beautiful !!

Ответить
Truth Shall Prevail
Truth Shall Prevail - 14.08.2020 23:54

At first, I was upset you didn't let us know how to fix that glitch(super expanding) but I am truly grateful that you didn't (after I figured it out of course).

It has to do with the phone example. When it's close it's huge.

I believe the issue here is,
The transition means all css properties changing in the specified duration.

In this example, initially, there's no transform at all. But later on, on hover, transform perspective() is set to 1200px which was nothing or 0 before.

Hence the transition starts from perspective(0px) [the closest] and zooms out to the specified value 1200px

To fix this, in the main style itself, set the transform to perspective(1200px), and then there won't be any animation on the perspective.

You can set the initial perspective to a closer number (eg 1100px or 1300px) to get a zoom in/out effect.

Ответить
KingXilar
KingXilar - 09.12.2019 07:03

It is easy to understand you. Thanks dude

Ответить
Shreyas M
Shreyas M - 02.11.2018 20:56

thank you so much <3

Ответить
Francesco Mirabella
Francesco Mirabella - 08.10.2018 08:42

Please fix video description and links! 😉

Ответить
ah bu
ah bu - 07.10.2018 23:54

Cool! (From Germany)

Ответить
Danilo Novaković
Danilo Novaković - 07.10.2018 17:24

This was the first time that my mind was blown by CSS :O Omg that effect at beginning is so cool!

Ответить
Nagendra Kamath
Nagendra Kamath - 07.10.2018 09:53

where is 25th video???

Ответить
Mute
Mute - 07.10.2018 06:31

im gonna miss this when its over :c

Ответить
yutao Wang
yutao Wang - 07.10.2018 04:07

code link is wrong

Ответить
SneakyJay
SneakyJay - 07.10.2018 00:58

ALSO why didn't you use transform-origin property?

Ответить
Loomis SackinFox
Loomis SackinFox - 07.10.2018 00:50

Sliding Panels Code links to day 25 code......?

Ответить
sean pheneger
sean pheneger - 07.10.2018 00:48

wrong vid description???

Ответить
SneakyJay
SneakyJay - 07.10.2018 00:48

how do you get that corshair selector in your browses when you select stuff? Is it a MAC thingy or is it a browser extension?

Ответить
SR Gamer ji
SR Gamer ji - 07.10.2018 00:43

Love from india

Ответить