Unable to find the error

I'm trying to apply animation to a box,in the html i created a div with class ="box" and i gavE the animations,i wanted the box to move along the border of the viewport,and change color after the box moves along next side.But it is not moving along,its just changing the colors
9 Replies
majkl
majkl10mo ago
There is this thing known as codepen. Heard of it yet?
santhosh8177
santhosh8177OP10mo ago
nope
majkl
majkl10mo ago
Please do some cursory search.
Jochem
Jochem10mo ago
There's no need to be rude @santhosh8177 please do give #how-to-ask-good-questions a look, it really helps you get others to help you when you share your code in such a way that someone can click a link and see the problem live in their own browser
majkl
majkl10mo ago
Rude? If speaking of politeness, I don not see any "please" or "thank in advance" in this post. From a person, who presumably requests my (or your) time. Essentially, it is a mere announcement.
Jochem
Jochem10mo ago
if you find someone's request for help insufficiently polite, feel free to just move on to the next thread.
majkl
majkl10mo ago
Rather inconsiderate. Yet you call me rude ... albeit it was only m and you, who used the nice p-word.
Jochem
Jochem10mo ago
@santhosh8177 to answer your question, the .container div doesn't have a height set. It's not going to take up any vertical space beyond the height of the box, so any vertical movement you're setting on the box is going to go from the top of container to the bottom, which is exactly as tall as the box itself so it doesn't look like it moves you have to set a height on html, body, and the container div, otherwise it doesn't work.
santhosh8177
santhosh8177OP10mo ago
Ok.thanks for the advice Thank you
Want results from more Discord servers?
Add your server