HTML & CSS help

I am needing help, I am trying to create a special effect in HTML and CSS. Can anyone help me?
No description
22 Replies
Jonathan
JonathanOP•16mo ago
with this effect, it fades top and bottom with a blur to top and bottom when scrolling, then there is an opacity that needs to be added.
vince
vince•16mo ago
Use psuedo elements 2 psuedo elements: 1 at the top of the container, 1 at the bottom. Then add a filter on each
Jonathan
JonathanOP•16mo ago
Okay, is there a way to make the type glow the way I have it in the image?
snxxwyy
snxxwyy•16mo ago
text-shadow i believe
Jonathan
JonathanOP•16mo ago
So I will need to make a psuedo element for top and bottom then add a text-shadow (probably). With a blur effect. I probably would need to mask the top and bottom as well to get it to fade?
vince
vince•16mo ago
I could definitely be wrong but this looks more like a JS thing where you'd select random characters and give them a color value I don't think you'd have to mask anything; I think you could just get away with 2 psuedo elements. On second look, since they are fading a bit, you could make a linear gradient as well
snxxwyy
snxxwyy•16mo ago
i believe it'd be a linear gradient on the pseudo element that fades towards the background color the further it goes down? dang me and vince got the same idea, beat me to it 😂
Jonathan
JonathanOP•16mo ago
I will also beable to scroll wth this as well, correct?
snxxwyy
snxxwyy•16mo ago
no, you'll have to add overflow-y: scroll; to the parent
Jonathan
JonathanOP•16mo ago
Okay has anyone thougth of doing this as a design to a website? If so, is there a tutorial on this? I am learning webcode on my own. I have gotten pretty far with my site.
vince
vince•16mo ago
I don't know any website that has a design like this unfortunately I don't really see why you'd want it from a design perspective either
Jonathan
JonathanOP•16mo ago
Huh.. OKay I guess I could be the first then
vince
vince•16mo ago
Are you just trying to make your content more digestable?
Jonathan
JonathanOP•16mo ago
I am more or less an old school graphic artist. I have learned how to get peoples attention through art and design. So to say, I am making my website artistic. I haev worked with people in high positions in the music industry and, I guess I am the guinney pig.
vince
vince•16mo ago
Ah okay, fair enough. My personal opinion would be that your design for that section makes it a bit harder for people to read compared to how it's traditionally done. How are you going to handle new sections/subsections in your text?
Jonathan
JonathanOP•16mo ago
I will be making hidden messages with the type (code). It will only be on my landing page with just one section. This site is geared towards people who are into future rock aka e-rock.
vince
vince•16mo ago
Ohh I see that's pretty cool. Good luck!
Jonathan
JonathanOP•16mo ago
Thanks, its more or less for esthetics.
vince
vince•16mo ago
If it's hidden messages you can use a span element and give it a class where it just changes the color of the text
<p>Some example <span class="hidden-message">text</span></p>
<p>Some example <span class="hidden-message">text</span></p>
.hidden-text {
color: blue;
}
.hidden-text {
color: blue;
}
Jonathan
JonathanOP•16mo ago
nice, I could use this. Thank you
Chris Bolson
Chris Bolson•16mo ago
You can achieve the blur effect with a back-drop filter on pseudo elements. Then for the fading out you can use a linear gradient mask as has already been suggested. I have put together a quick code pen to test it out https://codepen.io/cbolson/full/VwqvBEP
Jonathan
JonathanOP•16mo ago
Thank you Chris...
Want results from more Discord servers?
Add your server