April 9, 201313 yr Hi folks, i'm hoping someone can help me out here. Basically i have a Database Count on my site, which is tied into a Search Filter. So on entering the site it Displays 2,700 Vehicles in Stock. It is then tied in to a set of drop downs to change when a Manufacturer is Chosen and then with Model being chosen. What i want to do is style each individual Character to make it look like a nice Digital Counter, unfortunately css doesn't allow individual character styling, and as the Number is generated Dynamically i cannot <span> each individual character, so i am looking for answers ... I stumbled across lettering js which on first impression gave me exactly what i wanted .. Output like below <h1 class="fancy_title"> <span class="char1">2</span> <span class="char2">,</span> <span class="char3">7</span> <span class="char4">0</span> <span class="char5">0</span> </h1> Unfortunately this only functions on the first page load, but doesn't apply to the number once it changes. I assume this is because the number changes with ajax and lettering js requires a page re-load. So can anybody tell me (a) An alternative way of achieving individual character replacement with an individual image or ( An option for applying lettering js without a page re-load .. Thanks for any help !!
April 9, 201313 yr maybe you could just edit a font and then use a font-face on the element that contains the counter?
April 9, 201313 yr Author I like that idea .. But i haven't had much luck finding resources to edit a font to look like an image. If you have any suggestions i would be most greatfull !
Create an account or sign in to comment