0

Repeating animations

How can I make my animation which is supposed to be a WiFi symbol repeat over and over again. I tried linear and infinite they did not help https://code.sololearn.com/WCkOkbUkd5rZ/?ref=app

25th Feb 2022, 11:08 AM
Junior
Junior - avatar
22 Réponses
+ 2
.bar1 { height: 15px; width: 7.5px; animation-duration: 3s; animation: bar1 1s infinite; }
27th Feb 2022, 8:52 AM
Vaibhav
Vaibhav - avatar
26th Feb 2022, 9:50 AM
Bob_Li
Bob_Li - avatar
+ 1
FF9900 I was thinking of resize on hover, if such a thing is possible... One thing I have trouble with on 'responsive' css is text. Text are troublesome... luckily there is none here. One workaround is to use svg, but that is another can of worms...😅 extra curricular reading material: https://hackernoon.com/the-best-css-unit-for-a-responsive-design-ku6q37to
26th Feb 2022, 11:43 AM
Bob_Li
Bob_Li - avatar
+ 1
Guys, i just want it to loop infinetly thats what im asking for, am not asking for the bars to go randomley i jsit eant the thing to loop, like when all the bars go down it loops thats all
27th Feb 2022, 12:49 AM
Junior
Junior - avatar
+ 1
Okay, ill try that
27th Feb 2022, 12:54 AM
Junior
Junior - avatar
+ 1
Can i just do this? animation: bar1 3s 1.5s linear infinite;
27th Feb 2022, 12:56 AM
Junior
Junior - avatar
+ 1
Okay thanks!!
27th Feb 2022, 1:36 AM
Junior
Junior - avatar
0
Why doesnt it work when i just do animation: bar1 3s 1s linear infinite?
25th Feb 2022, 11:40 AM
Junior
Junior - avatar
0
Can you show me what you mean?
25th Feb 2022, 12:14 PM
Junior
Junior - avatar
0
Yea, i just want it to loop
25th Feb 2022, 1:31 PM
Junior
Junior - avatar
0
Its fine, its too messy of a code anyways
25th Feb 2022, 1:34 PM
Junior
Junior - avatar
0
FF9900 great suggestion.✔️ That would make it more manageable too. Maybe it would be better to use relative units and css variables to make the thing resizable? Is it doable?
26th Feb 2022, 10:08 AM
Bob_Li
Bob_Li - avatar
0
FF9900 I'm done with this. Your Mom , sorry for hijacking your post... vw, vh, rem, etc... are useful, but hard to visualize on different devices with diffrerent screen resolution. Css variables are useful in concept, but unwieldy in practice. Maybe it's overkill for this experiment, but it's too much work to convert back to px just to see if transitions would break. final version with bells and whistles... https://code.sololearn.com/W5bt0gQc3RLg/?ref=app
26th Feb 2022, 1:46 PM
Bob_Li
Bob_Li - avatar
0
Your Mom if you are using css animation, you have to add: animation-iteration-count:infinite; if javascript I would suggest requestAnimationFrame.
27th Feb 2022, 12:53 AM
Bob_Li
Bob_Li - avatar
0
yes. I just kept it separated to make it easier to sort the numbers when I was tweaking the timing.
27th Feb 2022, 12:59 AM
Bob_Li
Bob_Li - avatar