Skip to content
Advertisement

Height Animation Hiding :Before Pseudo Element

I’m attempting to create an animated timeline. I’m using scroll reveal to trigger the animation when the timeline comes into view. Each timeline entry has a left border and a pseudo element :before associated with it. The :before element is a dot that marks the beginning of each timeline entry. When animating the height of the divs that contain the border, the :before pseudo element overflow is cut off. I’ve set overflow to visible with the !important flag but that doesn’t seem to do the trick. Does anyone know why the :before pseudo element is being cut off? Thanks for the help!

JavaScript
JavaScript
JavaScript

Advertisement

Answer

You can probably answer your own question but I’m posting an answer anyway. As you saw all you need is to set the overflow style to the tml-line class.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement