Animate a pseudo element
VictorWork
ContraBureau
ContraBureau
A multidisciplinary creative studio specializing in campaigns, brands, and spaces.
48 Replies
this is my code html:
my code css:
the problem is my underline on the link suppose to grow from left to right
but nothing is happend
can I get help
thanks by advance.
well is it supposed to grow on hover??
Changing
.visible:before
to li:hover:before
makes it workeither way i don't see any animation or hover
shouldn't it be
li:hover::before
Also, this is why websites shouldn't rely on specific viewport heights to work. Even fancy websites drop the ball
No, can be either way
aah ok
no when I am on the page
so when u enter the webpage
it'll grow?
he don't suppose to be on the hover but when I'm on the page
by saying on the page
yes
You want an animation then
now the question is , is it supposed to grow and shrik and keep repeating
or just grow and stay
the website is nice but daamn
I don't like the red color
keeping to grow and shrink when I come on the page
also, i feel like the texts r just too overwhelming
well then animation
in the :before add
and then in css add
should work i guess
The more I look at contrabureau's website the more I hate it Things are based on viewport width so if you have a widescreen monitor you're going to have a bad time as everything is huge
Their footer isn't stickied, it's being constantly translated so it bumps up and down by a pixel as you scroll
Websites with loading pages are annoying, they don't even have anything that explains it
The animation on their logo on hover jerks and comes to a sudden stop
I hate the circle thing under the cursor, it does shrink while focussed but it's still opaque
The scrollbar is nonfunctional
For a website that is meant to be polished all of the things that have animations and transitions don't play nicely with hovering and unhovering quickly
I hate artsy fartsy websites so much
the typography is just, idk very obnoxious
A lot of visual noise
yaa exactly
it's like u enter and it u have no idea what is going on
what to read
❓
When you hover over it a bit jumps up from the left
lol
They learnt about dash array offset and needed to use it
lmao
I didn't even see this next to it
They're the worst
😂😂
i mean the amount of big words and letters
it's obvious not to notice that
😂
excessive amount of styling
i assume it's some fashion websites??
Website is shaking with fear
Also scrolling is delayed and slow
😂😂
having a stroke
i like minimalist webpages more
it just hurts to think the amount of effort went into this only for the website to not even be user friendly
I like websites that don't try too hard and are nice to use and predictable
yaa
I mean I have made some terrible footers https://codepen.io/z-/pen/zYxdRQy but I wouldn't actually use it in a website
Zed Dash
CodePen
CSS Goey footer
I'm a little late to the blob party, but I'm having fun Do not use this for real projects with this amount of blobs, use 24 of them or less 😛 _ ...
If you have a funny idea it belongs on CodePen, not on a website, they need to get it out of their system and make something good
I'm trying to learn with this video
Benjamin Code
YouTube
Challenge: 1h pour créer un menu interactif avec CSS et JavaScript
Procurez-vous la version complète de cette vidéo sur mon shop et profitez de -30% avec le code BUREAUCODE30 pour les 30 premiers acheteurs !
https://shop.benjamincode.tv
Si vous faites le challenge de votre côté, les polices sont :
Crimson Text pour les titres et
Space Grotesk pour les texts.
Le site que j'utilise pour réaliser mon splitter e...
but the video is in french
Ah they're using IntersectionObserver to add the class to do the animation
https://codepen.io/z-/pen/yLRzvxK/7e70596d218432d4273650c514aec8c9?editors=0010 this is a minimal example
More in-depth example https://codepen.io/z-/pen/qBJPxQz/1164e4cd2852e2fc781fd7f4a22dbfe8?editors=0010
Just having the class won't do anything because the initial state is visible, not turning visible
if you look before he had intersectionObserver the animation of underline is working
That's because the
visible
class is being addedat 5:44min
to my side he don't work
He's using vite which updates the website but only what changes meaning that the class is given the style to animate but the page didn't reload, if he were to refresh at 5:44 it would just show the line there without animation
I want just realise this effect
before I had JS
I like the artsy, marketing agency websites 😢
Some of them are amusing and they do impressive things but they all fail at being functional websites that only exist to get Awwwards. This one is by far the least polished and has the most glaring issues
Yea I agree, a lot of them are super sluggish haha