No video

CSS Mouse Tracking 3D Tilting Card

  Рет қаралды 33,848

Kevin Powell

Kevin Powell

Күн бұрын

Пікірлер: 54
@marl3x
@marl3x 2 жыл бұрын
That is such a simple solution that I would have never been able to come up with it. Nice.
@aviralvikram9431
@aviralvikram9431 2 жыл бұрын
Hello Kevin i am one of your Students. And I just want to Thank you from the Deepest part of my heart for all this Juicy CSS and Html Knowledge. YOU ARE MY FAVOURITE MENTOR for frontend. And You Successfully made me FALL IN LOVE WITH CSS. I Just LOVE all Your Videos, the way you teach makes everything Really easy to Understand.i Just wanna say I Love you(as a person). And you helped me a lot in my life, i am still learning a lot from you, and I hope you keep doing this.I REALLY REALLY APPRECIATE All The knowledge you are sharing with us. Thank you very much.
@KevinPowell
@KevinPowell 2 жыл бұрын
Thanks so much for the kind words! I'm so happy that my content has been able to help out in your journey :D
@reegiromar
@reegiromar 2 жыл бұрын
I swear to God kevin you made me fallen in love with CSS a long ago and still am the big listener to you man 😍 thank you for giving us the best time spending with CSS 👏 I love you to the God man ♥️😍 Keep going
@zarkasias
@zarkasias 2 жыл бұрын
Very cool!! I always learn new css tricks when watching your videos!!
@marklnz
@marklnz 2 жыл бұрын
I mean, you can do *everything* "without Javascript". If I'm doing "no-js" web stuff personally, I like to build with WASM, for example. However, the fun part of watching these videos is seeing a CSS wizard do it with *just CSS* which is a MUCH bigger deal than just doing it "without javascript". Nice job as always, Kevin.
@homan-awa
@homan-awa Жыл бұрын
but how do you do DOM manipulations with wasm
@simenhagen86
@simenhagen86 2 жыл бұрын
And here i struggle with making an regular card look good😅 this was awsome
@KOBE42__
@KOBE42__ 2 жыл бұрын
Neat little trick and really liked your logic behind making it work using pure CSS. I need to put all of this stuff into practice. While I absolutely love your tutorials, I’m finding it difficult to learn just by watching. I think I need to start building things with some of these more advanced CSS properties/selectors. Thank you Kevin
@KevinPowell
@KevinPowell 2 жыл бұрын
Implementing things is so important. Watching is sort of like learning that things are possible, building stuff is how we learn how to actually do it though :)
@securefolder4548
@securefolder4548 2 жыл бұрын
Last night fell asleep watching ur vidoe and had a css dream I was trying to make a animated navigation bar in my dream 😄
@KevinPowell
@KevinPowell 2 жыл бұрын
Here you go: kzfaq.info/get/bejne/fMt6eKh2mODHZIk.html
@Deadgray
@Deadgray Жыл бұрын
Haha, today I learned from this .something to turn into div in VSCode after so long using it, thanks 😀
@felixc.programs8209
@felixc.programs8209 2 жыл бұрын
Great tutorial, I'm looking into posting HTML/CSS tutorials on my channel too but its still quite far in my schedule. In the meantime, little tutorials like this one are great to remind me of all the possibilities you have with just CSS. Can't wait for the next tutorial!
@minhduc8a21
@minhduc8a21 Жыл бұрын
Thank you so much, Kevin
@djol3336
@djol3336 2 жыл бұрын
Cool video. Thanks
@tate_rs
@tate_rs 2 жыл бұрын
Hello Kevin, i'm an Embedded dev and web things like HTML, CSS and JS have always been a pain for me. I bumped into you few days ago when i was searching for some videos about CSS and honestly, you are actually changing the perspective on how i look at CSS. It's not aversion anymore, i'd say it's more of a curiosity now. I haven't started with practicing HTML and CSS yet but i still enjoy watching your videos. So i'd like to thank you for that !
@sahildas.
@sahildas. Жыл бұрын
same.
@CastleShield
@CastleShield Жыл бұрын
This looks splendid!
@theman7050
@theman7050 2 жыл бұрын
This is a brilliant use of Grid, my man ✌🏽😁
@pavanrao2965
@pavanrao2965 2 жыл бұрын
Kevin back with interesting stuff as always 😍
@komakaze1
@komakaze1 Жыл бұрын
Another great video Kevin. I found it tricky to follow along at home. Here's my minor nitpicks while debugging my code - You renamed a variable to --rotateX in the video, but in the codepen it's labelled --rotationX. Sometimes you reference Y before X, where consistently X before Y would help readability. You include a rotationZ but don't use/need it. I couldn't get the sections of the grid to change colour on hover until i'd found i'd used a different class name for tilting-card-body.
@YurijVolkov
@YurijVolkov 2 жыл бұрын
Oh, I love clever stuff! It's indeed a simple solution but you have to crack your brain to come up with it) Thanks!!
@VipulAnand751
@VipulAnand751 2 жыл бұрын
Thanks Kevin
@duckyboy53
@duckyboy53 2 жыл бұрын
kevin is css god
@SelmanIsHere
@SelmanIsHere Жыл бұрын
My thoughts from this video, grid simplified the html and complicated the css, while flex boxes were the other way around.
@mirimjam
@mirimjam 2 жыл бұрын
Maybe I'm wrong, but couldn't you set up the grid hovers the same as you did the rows and columns? Meaning rows 1-3 always tilt upwards, column 3n always tilts to the right, through combination, nth-child(3) tilts to the top and to the right. Then apply the transform on hover.
@DanielBakerN
@DanielBakerN Жыл бұрын
I was thinking the same thing
@The-Dev-Ninja
@The-Dev-Ninja 2 жыл бұрын
very cool :)
2 жыл бұрын
u r awesome !!
@AlexDBaxter
@AlexDBaxter 2 жыл бұрын
Great video! Of course in practice you would probably do this with JS, but it's nice to know this and similar effects can be managed with CSS only. I managed to trim the CSS a bit using a combination of the grid technique and the :has selector - so. you don't need to position the trackers explicitly (the grid does that for you), and you only need 4 rules to control the transforms (2 for the top and bottom rows, 2 for the left and right columns). I've done a codepen at alexbaxter-the-selector (seems like KZfaq does not let you do links in comments?)
@outpost31737
@outpost31737 Жыл бұрын
Sod that it's easier using JS. Interesting concept though.
@rickardelimaa
@rickardelimaa 2 жыл бұрын
Was going to skip this video, because you show-cased this solution when you looked at others amazing CSS tricks ... but as usual I learned something new. Never thought about being able to select ranges with nth-child like that. Too bad _nth-master_ is gone.
@KevinPowell
@KevinPowell 2 жыл бұрын
It's *just* gone down too. It was up around 2 weeks ago :\
@theZ3r0CooL
@theZ3r0CooL Жыл бұрын
Mac is option+shift
@ryanfiller
@ryanfiller 2 жыл бұрын
With the z-index being the way it is on the mouse tracker, would it be possible to put a link or button in the card? it seems like that would overlap the hovered div, I guess it would need to be confined to the center most grid area to not break the tilt effect?
@KevinPowell
@KevinPowell 2 жыл бұрын
There might be a workaround, but if I had to implement this in an actual project that went beyond something very simple, I'd probably use a JS library tbh.
@zachjensz
@zachjensz 2 жыл бұрын
At 23:00 I would just declare --negative-angle: calc(var(--angle) * -1); and use var(--negative-angle) thereafter
@8bitlikadam920
@8bitlikadam920 2 жыл бұрын
This is actually a mapping. Wow...
@ginga4eva
@ginga4eva Жыл бұрын
Does anyone know if this works in Wix Editor X?
@parekhnirajj123
@parekhnirajj123 2 жыл бұрын
Npm install Tilt :)
@anthoniG
@anthoniG 2 жыл бұрын
Anyone know where the Code Pen link please?
@KevinPowell
@KevinPowell 2 жыл бұрын
I've just added them to the description, sorry about that!
@anthoniG
@anthoniG 2 жыл бұрын
@@KevinPowell Thanks. Keep up the good work, really enjoying your tutorials
@mody-nd8cu
@mody-nd8cu 2 жыл бұрын
first😍
@dabbopabblo
@dabbopabblo 2 жыл бұрын
aspect ratio is new?
@KevinPowell
@KevinPowell 2 жыл бұрын
Been around for a little while now 🙂
@dabbopabblo
@dabbopabblo 2 жыл бұрын
@@KevinPowell So is it supported by most browsers? Because I'm using it all across my website, and that caught me off guard
@KevinPowell
@KevinPowell 2 жыл бұрын
@@dabbopabblo it has pretty good support caniuse.com/?search=aspect-ratio
@mikkolukas
@mikkolukas 2 жыл бұрын
Why are my comments being deleted?
@Rxplys
@Rxplys 2 жыл бұрын
You never heard of flex?
@AgainPsychoX
@AgainPsychoX 2 жыл бұрын
What's the point with using so large font and having browser bar visible? Try full-screen mode (F11)!
@KevinPowell
@KevinPowell 2 жыл бұрын
I can't full-screen, my screen is bigger than the area I'm recording :\
@FdWebdesign
@FdWebdesign 2 жыл бұрын
Very cool
Can you beat me at a CSS Battle?
49:42
Kevin Powell
Рет қаралды 358 М.
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 13 МЛН
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Cool Tool SHORTS Netherlands
Рет қаралды 9 МЛН
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 18 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 206 МЛН
Cool 3D grid layout | Can I clone it?
1:08:02
Kevin Powell
Рет қаралды 257 М.
You are doing :focus wrong (and I was too)
13:24
Kevin Powell
Рет қаралды 154 М.
Obscure HTML elements that almost no one uses (but should!)
12:35
Kevin Powell
Рет қаралды 99 М.
This is the hardest CSS Battle I've tried
1:27:43
Kevin Powell
Рет қаралды 110 М.
101 Weird But Useful Minecraft Hacks
48:36
Skip the Tutorial
Рет қаралды 4,3 МЛН
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 890 М.
This Cool JavaScript Effect Will Make Your Website 3D !
56:21
True Coder
Рет қаралды 1,1 МЛН
Three.js Shaders (GLSL) Crash Course For Absolute Beginners
2:57:28
Visionary 3D
Рет қаралды 90 М.
:has() opens up new possibilities with CSS
14:30
Kevin Powell
Рет қаралды 285 М.
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 13 МЛН