I am trying to do an "infinite (max int 2147483647)" counter in CSS only, I cannot use javascript or other languages, I have succeeded via @property but it is only supported on Chrome, Edge and Opera. Is there any way to achieve this without using javascript and without writing all the numbers in HTML?
@property --num { syntax: "<integer>"; initial-value: 0; inherits: false; }
.counter { counter-set: num var(--num); }
.counter::after { content: counter(num); }
.counter { animation: counter 2147483647s linear infinite; }
@keyframes counter { to { --num: 2147483647; } }
If not possible can you suggest a way to detect current and future browsers that supports @property In my mind there is something like
@support (@property) { /* CSS HERE */ }