Комментарии:
Esto no es Parallax !.-
ОтветитьHow so you make a html/css only parallax work for safari?
ОтветитьI dislike Firefox... I used to be one of Firefox's biggest promoters.
Now that I'm taking FEWD classes, I take it all back.
Thank you very much for the video! Cool and useful info. I have a question - if there is a title which is partially hidden behind the image - I need to use parallax effect as well ? Thanks in advance
Ответить🤍
Ответитьthx
ОтветитьThat's a pretty cool way to make that effect, since I started playing with CSS i fell in love with parallax sites, but I've always done it with the z-indexes and transform properties.
I wish ya'll a good day ! 😁
I did this as my first dev job for a client back in Feb but using the transform z-axis and perspective because I had lots SVG elements that needed to move independently
ОтветитьCan you make a video on making the background fixed (doesn't move when scrolling) and make the contents move
Ответитьcorrect me if im wrong but i think this kind of effect can also be achieved by applying different z indexes on the images and then just give the header a fixed or sticky position property with a z index between the mountain and sky images
ОтветитьAwesome! Thanks for the video!
ОтветитьThank you, Kevin! 👏👏
ОтветитьWhen I saw title I thought you would do parallax like it's done in old games, where layers move at different speed, to create 3D feel. Turns out a bit different. Good trick nonetheless.
ОтветитьFor a case like this i think it is better and easier to place png (hill in this case) on top of background image (stars) and hide header behind png using z-index
ОтветитьI think it's cool but as you say a little rough around the edges, I can't un see it now :/ And why are all parallax video's space-themed ? Anyway I wanted to tell you there are more CSS only ways of doing parallax. Coding in public did a nice one where he uses perspective , translate3d and scale to have this parallax scroll over effect.
Ответитьhi Kevin!
One of the most common problems that i have with CSS is to keep a heading table (thead) fixed while scrolling.
Is there a way to do it without wrap everything inside divs etc?
i had to do a parallax effect on a herobanner at work but it was several element moving at various speed relative to the scroll of the page. but not fixed .
I ended up using canvas, redrawing it on each scroll event but on the way there at one point, I had jus a js script capturing the Window.scrollY vallue and affected it to a custom propertie. then my parrallax elements had the top properties be something like top: calc(0.4 * var(--scroll-value)); and top: calc(0.8 * var(--scroll-value)) ; (or it was translateY ,i don't remember)
while I did ended up using canvas instead as I found the animation more fluid, I think it was a nice way of doing it... if you can ignore IOS safarie completely chocking up on it.
Additionally you could control the opacity of the background color when scrolling down to the bottom to darken the scene even more 🤔
ОтветитьHi Kevin, I sent you an email regarding your course. Thank you :)
ОтветитьNot sure an SVG with such a hidef path build from hundreds of control points is that much smaller than an *8 color* pngcrushed PNG, cos that's all the colours you need for an alpha mask. It's probably easier to create that bitmap mask with a proper image editor like Affinity Photo (much, much cheaper yet as powerful as Photoshop btw and much prettier & faster than the ugly Gimpling)
ОтветитьGreat effect! Simple and easy. Yay!
But I have to agree with those who say that this isn't truly parallax. Parallax in my eyes requires a steady background and two (or more) layers moving at different speeds in a - well - parallax manner when you scroll, imitating perspective and giving the impression of different distances to the background.
I have seen examples in CSS using some intricate transform and scale with 3D preservation. I have even tried to implement it a couple of times myself, but to no avail - mostly because the markup delivered by the CMS has been unsuited for the code I found.
An example of "true" parallax would be a great video subject.
I LOVE Red Stapler! I miss him!
ОтветитьThis is exactly what Ive been looking for. you have no idea how many times ive tried to browse through your videos to find a video regarding this.
ОтветитьYou said you weren't sure if @RedStapler_channel is still making videos, and indeed his most recent couple of posts were from 4 months ago... until he posted a new video today, about an hour before you posted this one! Looks like someone has great timing, though I have no idea who.
ОтветитьCan you do more on accessibility regarding the Dom structure. Also why are websites in filing cabinets. Surely we should be more advanced using all websites as a pullout file?
ОтветитьKevin made me love css ngl
Ответить☺️☺️...
ОтветитьI've looked into many different parallax effects and I as far as I can tell none of them are very good. The best one I have found in pure CSS is the Keith Clark one from many years ago, is there a better CSS alternative these days? I can't find anything. Javascript ones are meh, mostly sluggish and jittery.
ОтветитьI kind of hate that it's called a parallax effect in the css/html world. There should be at least 2 background layers moving at different rates else it's just Background-moving-in-a-funny-way-effect (tm).
ОтветитьHi sir I've questions from you what's your thoughts about chatGPT?
ОтветитьI just started learning about parrallax scroll and a few minutes later..... Beep(notification)
Kevin powell uploaded a video on
"Parrallax”
This just shows you are always ready show us some new magic tricks.
Always giving us more fun things to do with css and making us Fall in love with it More and More.
You just read my thoughts every time. Thank you for the video!
ОтветитьYo....this man reads my mind, I swear.
ОтветитьVery creative way to make parallax elements with SVG masks... Well done again, Kevin!
Ответитьvery creative
Ответить