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
There is this thing known as codepen. Heard of it yet?
nope
Please do some cursory search.
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
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.
if you find someone's request for help insufficiently polite, feel free to just move on to the next thread.
Rather inconsiderate. Yet you call me rude ... albeit it was only m and you, who used the nice p-word.
@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.
Ok.thanks for the advice
Thank you