Can I copy this cool effect with CSS?

  Рет қаралды 173,839

Kevin Powell

Kevin Powell

Күн бұрын

I recently came across a very fun-looking CodePen by Gayane Gasparyan, and I wanted to see if I could recreate the effect.
🔗 Links
✅ The codepen that inspired this: codepen.io/gayane-gasparyan/d...
✅ My finished code: codepen.io/kevinpowell/pen/jO...
✅ Other videos in this series: • Can I build it?
⌚ Timestamps
00:00 - Introduction
00:38 - What I’m starting with
01:18 - The HTML
03:23 - Starting the CSS
05:55 - Adding the tilt
07:56 - Adding the shadow under the card
14:32 - Preventing the shadow from rotating
19:26 - Adding the vignette on hover
22:40 - Adding the logo
30:30 - Adding the second image on hover
#css
--
Come hang out with other dev's in my Discord Community
💬 / discord
Keep up to date with everything I'm up to
✉ www.kevinpowell.co/newsletter
Come hang out with me live every Monday on Twitch!
📺 / kevinpowellcss
---
Help support my channel
👨‍🎓 Get a course: www.kevinpowell.co/courses
👕 Buy a shirt: teespring.com/stores/making-t...
💖 Support me on Patreon: / kevinpowell
---
My editor: VS Code - code.visualstudio.com/
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my KZbin channel, make sure to follow me on Instagram and Twitter.
Twitter: / kevinjpowell
Codepen: codepen.io/kevinpowell/
Github: github.com/kevin-powell
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

Пікірлер: 171
@ichiroutakashima4503
@ichiroutakashima4503 9 ай бұрын
12:58 Words spoken by a true developer. 😂 "I don't try and do things perfectly, I try and get them to work..."
@chhavimanichoubey9437
@chhavimanichoubey9437 9 ай бұрын
that's my approach since the beginning of my coding journey.
@viralclickb8
@viralclickb8 8 ай бұрын
@@chhavimanichoubey9437 same... one day something will work.... one day.
@geelemo
@geelemo 7 ай бұрын
Yh prototyping... small sauce before you pour it in the big soup
@mraloush8959
@mraloush8959 5 ай бұрын
thats the oppsite of a true dev. also hes not doing dev work. its css, its not even coding
@viralclickb8
@viralclickb8 5 ай бұрын
@@mraloush8959 ....................... cuz js, c#, and c++ etc is so much more complicated? LOL spoken like someone who doesnt know how to code, can tell you right now... make a functional webapp with lets say js, html and css, css will take the most time to get right. not including the backend dev
@vasyaqwe2087
@vasyaqwe2087 9 ай бұрын
this might be just the coolest thing i've seen done with css. Great job Kevin
@rj3965
@rj3965 9 ай бұрын
It always amazes me. You provide not only complex answers in a simple fashion but mostly I am surprised that someone is providing such high quality content and knowledge for free on KZbin while sharing most importantly the whole thought process on how one should approach a certain issue. You sir are a legend and have made my life very very easy. As a backend developer trying to understand UI and UX it was getting very frustrating before coming across your videos and here I am now sharing your content and suggesting your channel to every one going through same frustration. Can't thank you enough but thanks.
@ethansc
@ethansc 9 ай бұрын
Super cool effect and I love these long-form videos where you’re going through the whole process showing the pivots, please keep them coming!
@aviralvikram9431
@aviralvikram9431 9 ай бұрын
Amazing, i love how you always bring something new for us to enjoy with css.
@henson_prod
@henson_prod 9 ай бұрын
I just love how you solve and figure things out as you go.
@adryeeel
@adryeeel 9 ай бұрын
Love this videos building from scratch! Please, do more. I learn a lot.
@kushagragour
@kushagragour 9 ай бұрын
Enjoyed this walkthrough! Great stuff as always, Kevin! ^_^
@deltaromeo8207
@deltaromeo8207 7 ай бұрын
This was really fun to create. I made a Zelda one with Link popping out. Thank you for doing the tutorial.
@GodsZoldier
@GodsZoldier 7 ай бұрын
i honestly find your thought process comforting
@ABanksy
@ABanksy 9 ай бұрын
So awesome man. I like that you kept the googling in the video! I think a lot of new people assume you have to remember and recall every property with ease or you arent doing it right.
@codytownley5236
@codytownley5236 7 ай бұрын
Love it! Truly enjoy the thought process!
@Ayydos
@Ayydos 9 ай бұрын
This was amazing, more of these please!
@aliaskhar.11
@aliaskhar.11 9 ай бұрын
This is absolutely perfect. Keep going!
@MaralTheGameGirl
@MaralTheGameGirl 9 ай бұрын
This is one of the coolest effects I've seen
@magoxxii
@magoxxii 9 ай бұрын
This is super interesting! I've been learning about attributes and properties I never even knew existed. Around halfway through the video, I might have lost my way a bit, but I'm genuinely excited to discover all the amazing possibilities that CSS offers. I would love to see more of this stuff with a tutorial touch to learn how to use them effectively.
@ThugLifeModafocah
@ThugLifeModafocah 9 ай бұрын
the skill is unbelivable. Thank you and congratulations.
@TheRealFreekBos
@TheRealFreekBos 9 ай бұрын
I am totally new at css and even though I don't understand that much it really showed me the power of css. Thank you for that! I also really love the trial&error type of video you made! Perfect...
@LabelledManiacs
@LabelledManiacs 9 ай бұрын
That was really cool, you have really helped me improve my css skills :)
@EldonElledge
@EldonElledge 8 ай бұрын
I suck at UI / CSS. This was fantastic and I learn so much from this. Thank you.
@spartiata71
@spartiata71 8 ай бұрын
Man, so intense! great job.
@hygorlima7660
@hygorlima7660 9 ай бұрын
amazing effect! thank you so much to explain it for us. Its always helps!
@flibben
@flibben 9 ай бұрын
Loved this style of video!
@NickCombs
@NickCombs 9 ай бұрын
Nicely done! I think for the shadow you could try tying the blur amount to --timing as well. As the bottom of the card rotates up, it would get further from the background and the shadow would become more diffuse.
@octothorpe12
@octothorpe12 9 ай бұрын
That was a heck of a lot of fun!
@blu3tan
@blu3tan 9 ай бұрын
omg this video was a wonderful journey... awesome, please keep going
@securefolder4548
@securefolder4548 9 ай бұрын
Was waiting for a video from u ❤❤
@user-qy9ty6go9j
@user-qy9ty6go9j 9 ай бұрын
This is one of THE BEST PROGRAMING videos are exist on this platform. Thank you from the bottom of my heart
@Drazyhaze
@Drazyhaze 8 ай бұрын
I enjoy your like nervous/half laughs where you're unsure if your choice is correct lol. Gives me a good chuckle cause I heavily relate. Nice video.
@markclynch
@markclynch 8 ай бұрын
absolutely love this style, figure it out, of video! Keep em coming!
@kylevandeusen
@kylevandeusen 9 ай бұрын
Love this style of video!
@_kaverna
@_kaverna 9 ай бұрын
I like videos like this where you go through your thought process xD
@user-dn7yl7ms1u
@user-dn7yl7ms1u 9 ай бұрын
Just at 7:07 you know this is some magic stuff going on. Thank you for your awesomeness.
@olumorsotnas
@olumorsotnas 7 ай бұрын
Amazing job!
@vincentmbwende9131
@vincentmbwende9131 9 ай бұрын
Totally love your work
@marquisegbunike5773
@marquisegbunike5773 9 ай бұрын
awesome try there. To me, you got it right. you're extremely good in CSS breaking it and moulding it back.
@islamali9818
@islamali9818 9 ай бұрын
16:14 Man, I like the fact that you kept improvising all the time, Cheers from Egypt.
@TheRalic
@TheRalic 9 ай бұрын
Just saw the intro and OMG can't wait to get the time to try this out 😮😮
@T25de
@T25de 9 ай бұрын
Amazing video Kevin
@matejlaskomulej
@matejlaskomulej 7 ай бұрын
These are my favourite videos of yours
@nikolaykyurchiyski7523
@nikolaykyurchiyski7523 9 ай бұрын
thanks for the inspiration, Kevin
@chhavimanichoubey9437
@chhavimanichoubey9437 9 ай бұрын
This helped me a lot to understand that I need to play with 3d effects more to make my site more awesome but with performance as well
@mehulparekh619
@mehulparekh619 9 ай бұрын
I used to think I am good at css. But after watching your several videos, I am definitely not a good one. 😂 But thanks, I am learning a lot from your channel !
@AabirKashif
@AabirKashif 8 ай бұрын
This is very cool!
@vinsmokesanji7629
@vinsmokesanji7629 4 ай бұрын
amazing man, gj
@JunieVM
@JunieVM 8 ай бұрын
I’m a beginner so this is out of my league but you inspire me a lot. Thanks Kevin.
@craftwithfatima4146
@craftwithfatima4146 9 ай бұрын
You made the internet awesome kev 🎉🎉
@renedperez
@renedperez 9 ай бұрын
Love the content!
@the-secrettutorials
@the-secrettutorials 8 ай бұрын
I was able to follow your tutorial with Webflow. Thanks!
@josechavez9428
@josechavez9428 9 ай бұрын
Amazing!
@millos0116
@millos0116 9 ай бұрын
Man I just enjoy watching you.❤
@leanrasmussen8019
@leanrasmussen8019 9 ай бұрын
This!!!! more of this !!!
@marktabner
@marktabner 9 ай бұрын
I never knew that animating drop shadows was stupidly resource hungry! Learn something every day!
@swissademar
@swissademar 9 ай бұрын
Hey Kevin, I'd love to see a video with you cleaning up the code for better understanding and also get to know your thinking proccess while doing so.
@jorgegamboa5408
@jorgegamboa5408 9 ай бұрын
that's some awesome css
@everybot-it
@everybot-it 9 ай бұрын
i think both ways have some merits... the way you got it to work has that "extra spacialness" and more control options, compared to the simple slide up version. And by playing with timings, you can create some pretty intricate 3D animations! 👍👍👍
@MrMairu555
@MrMairu555 9 ай бұрын
Star Wars, CSS, and the return of smooshing! What more could I want?! 🤣🤣🤣
@busarikazeem1995
@busarikazeem1995 9 ай бұрын
Beautiful 🎉
@indracode7
@indracode7 9 ай бұрын
Amazing sir 👍
@faridlachkar
@faridlachkar 9 ай бұрын
Thank you SO MUCH .. Really Awesome
@sum1179
@sum1179 9 ай бұрын
Nice teacher, amazing!
@Kaldrax
@Kaldrax 8 ай бұрын
Nice video, informative and interesting to watch. I think separating the front image and logo from the background to not rotate with it might be a lot easier than trying to fix the rotation with negative values though.
@ozairabtahi
@ozairabtahi 7 ай бұрын
Well done
@BRODERVEVO
@BRODERVEVO 9 ай бұрын
I love this thumbnail face, gets me everytime
@heiko3169
@heiko3169 9 ай бұрын
Thats a pretty neat animation. thanks for explaining and showing how to do it. P.S. I like the unscripted content here
@zahrahasti3723
@zahrahasti3723 9 ай бұрын
It was awesome.
@SDRMusic777
@SDRMusic777 9 ай бұрын
I was laughing through almost the whole thing but you taught me a lot today
@victor25021983
@victor25021983 2 ай бұрын
even the master keep learning. ❤
@J90JAM
@J90JAM 9 ай бұрын
Kev, the css MVP 🤙
@RaveKev
@RaveKev 8 ай бұрын
Such a great video! And i like how you love small hurdes (just as i do 🙂). There is allways a solution and it's great that you don't edit your moments of "whooops, i have no idea.. but let me think."
@StevenDavisPhoto
@StevenDavisPhoto 8 ай бұрын
Looks pretty simple. I like when designers actually do cool stuff and challenge us CSS guys a bit ;)
@MasayaShida
@MasayaShida 9 ай бұрын
yoda best CSS teacher
@oncalldev
@oncalldev 9 ай бұрын
Definiitely like the real-time thought approach to problem solving.
@SamarHayatOfficial
@SamarHayatOfficial 9 ай бұрын
We want more videos something like this :)
@PicSta
@PicSta 9 ай бұрын
For me, it looks like the logo itself isn't on the same layer as the card. Without taking a look at the demo code I would say he used 2 layers and the top layer with the logo makes the opposite animation, that it looks like it stays and then the same time it gets moved up. The Rider is a pseudo-element of the same layer as the logo, which only shows on hover and also floats up. Not easy to get what happens here, but I think I am close to the original demo.
@RazahLP
@RazahLP 9 ай бұрын
Wow!
@RickertBrandsen
@RickertBrandsen 9 ай бұрын
surprised that i was watching you for years and was not actually subscribed.
@keremardicli4013
@keremardicli4013 9 ай бұрын
Amazing...
@sovereignlivingsoul
@sovereignlivingsoul 8 ай бұрын
very nice
9 ай бұрын
Greats job
@JaGaNezhil
@JaGaNezhil 9 ай бұрын
Css master 😍😍🔥🙏🏼🙏🏼❤
@poooooow
@poooooow 9 ай бұрын
It's crazy to me, if pros justify, just because they are not doing things instant perfect. Just because there are 0.01% haters, which will always hate. Great job, great inspiration!
@KultuFact
@KultuFact 9 ай бұрын
Please make more videos like this
@salman.tanvir
@salman.tanvir 9 ай бұрын
I think this style of unscripted video is awesome 👍
@mentarioallen572
@mentarioallen572 8 ай бұрын
crazy
@Beastintheomlet
@Beastintheomlet 9 ай бұрын
Z-index not doing what I think it should is a weekly battle for me I swear.
@PixelAnimeCoder
@PixelAnimeCoder 9 ай бұрын
it was something i haven't saw :)
@WraShadow
@WraShadow 9 ай бұрын
This looks awesome. I want to point something out though. Dont know if youre aware of this, forgot, or do it for a specific reason Im not aware. In this and a lot of your videos you tend to use a lot of z-index and most of them are unnecessary just by having the correct order. For instance when you use ::after pseudo-class for something you want beneath or have to use z-index to bring up a div that could just be on top by changing order to below the next div instead of above. Maybe something to explore? Otherwise, I learned about the perceptive having to be in a container, not that I use it much but good to learn in case.
@MrOliver1444
@MrOliver1444 8 ай бұрын
Amazing value. I learn so much. Also how to use some tools in wordpress the best way possible. Like using the sudo element for shadows to make it more performed
@hologram4118
@hologram4118 9 ай бұрын
🎉🎉🎉
@DesignwithCracka
@DesignwithCracka 9 ай бұрын
Awesome video Kevin, I think preserve 3D wasn't necessary and ended up causing more complications.
@KingTMK
@KingTMK 9 ай бұрын
I believe the reason the z-indexes weren't working for the two images is because Yoda had an opacity of 0, which created a new stacking context
@igu642
@igu642 8 ай бұрын
❤❤
@TheMetalMag
@TheMetalMag 7 ай бұрын
U’re the boss
@severgun
@severgun 9 ай бұрын
Logo should slide more vertically staying perpendicular to camera. Also there should be delay or different speed between yoda and logo. So there would be feel that they are at 2 different layers.
@joelpinnock8131
@joelpinnock8131 9 ай бұрын
Great stuff, can you show us the clean up version when you get a chance please.
@muhammad.mohsen
@muhammad.mohsen 9 ай бұрын
I think if only the background image rotated rather than the whole card, it would've been easier. Set the perspective on the card, then translate the shadow to -10z, the background is at 0z, and the logo + foreground to 10z What do you think? And awesome video, as always...the half hour literally flew by!!
@thtasca
@thtasca 8 ай бұрын
Wow, great video, I think the strangeness of the card flip is because it is very tall, the examples are shorter maybe that is the difference you are commenting on or just some adjusts on perspective
@user-hf5mp5ys6o
@user-hf5mp5ys6o 9 ай бұрын
You're good at what you do. Some creative feedback, i basically fast forwarded alot. Because i couldn't stand the trial and error since it got me confused thinkin that i could learn from this video. I think it would be more pleasing to watch if you learned the CSS beforehand. Then made the video step by step, titled: "I found this cool CSS effect and here's how to do it".
@lost_and_finding
@lost_and_finding 9 ай бұрын
All hail the css god
Can you beat me at a CSS Battle?
49:42
Kevin Powell
Рет қаралды 357 М.
Subgrid & Container Queries change how we can create layouts
21:08
Kevin Powell
Рет қаралды 72 М.
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 58 МЛН
Can I copy this text reveal scroll effect with CSS-only?
17:17
Kevin Powell
Рет қаралды 123 М.
Cool 3D grid layout | Can I clone it?
1:08:02
Kevin Powell
Рет қаралды 257 М.
I Challenged The CSS King To A CSS Battle
37:45
Web Dev Simplified
Рет қаралды 1,3 МЛН
Teaching my 11-year-old HTML & CSS
35:09
Kevin Powell
Рет қаралды 246 М.
I've been challenged to a CSS BATTLE by Web Dev Simplified
42:22
Kevin Powell
Рет қаралды 949 М.
How to Free Up Space in Windows
4:06
Techquickie
Рет қаралды 8 М.
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 160 М.
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,7 МЛН
Can I Beat The King Of CSS Again? - CSS Battle
12:40
Web Dev Simplified
Рет қаралды 247 М.
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 58 МЛН