ajoo Posted July 4, 2019 Share Posted July 4, 2019 (edited) hi , please can someone check the fiddle https://jsfiddle.net/yqktb40L/18/ and say why the block remains stuck in its position and not oscillate up n down every 2 seconds as it is supposed to. There is nothing wrong with the code. It works great on a local server but does not work in jsfiddle. Thank you. Edited July 4, 2019 by ajoo Quote Link to comment https://forums.phpfreaks.com/topic/308924-stuck-block/ Share on other sites More sharing options...
kicken Posted July 4, 2019 Share Posted July 4, 2019 You need to specify your units for the margin values. 161px, not just 161. 1 1 Quote Link to comment https://forums.phpfreaks.com/topic/308924-stuck-block/#findComment-1568143 Share on other sites More sharing options...
requinix Posted July 4, 2019 Share Posted July 4, 2019 If you want a simple animation like to move to the top and bottom every 2 seconds then CSS's animations can do it better. 1 Quote Link to comment https://forums.phpfreaks.com/topic/308924-stuck-block/#findComment-1568144 Share on other sites More sharing options...
ajoo Posted July 5, 2019 Author Share Posted July 5, 2019 Thanks guys ! @ kicken: Thanks loads. I couldn't have spotted it in 10 days at least. The previous ten bear testimony to that !😲 @ requinix: Thanks for that tip ! I'll bear it in mind. Quote Link to comment https://forums.phpfreaks.com/topic/308924-stuck-block/#findComment-1568146 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.