The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript CSS animation interferes with Javascript? Reply To: CSS animation interferes with Javascript?


Sorry, here you go, I’ve updated the CodePen:

I’ve included the Media Query with the min-height as well, you might need to change the min-height value depending on the size of your monitor so you can see both layouts in action.

The effect actually appears to work but I assume this has something to do with the code in CodePen. If you remove the Media Query @media screen and (min-width: 768px) and (min-height:768px) { from around the CSS you get what I’m seeing, where there is a jump in position when you scroll …hopefully that makes sense when you see it.