Want to build the ChatGPT based Apps? Start here
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Asyraf MN
2.1k
28
6k
jQuery number counter animation
Mar 14 2018 2:47 AM
I'm using this jQuery snippet to animate a data from notepad like number counter way.I just want it to display it randomly. Could someone show me how to modify it to get letters and numbers because the codde are only read numbers.
Asp.Net
<b><asp:Label ID=
"Label1"
runat=
"server"
Text=
""
Font-Names=
"Krona One"
Font-Size=
"70"
ForeColor=
"#ffff00"
class
=
"Count"
></asp:Label></b>
JQuery
<script type=
"text/javascript"
>
$(
'.Count'
).each(
function
() {
$(
this
).prop(
'Counter'
, 0).animate({
Counter: $(
this
).text()
}, {
duration: 2000,
easing:
'swing'
,
step:
function
(now) {
$(
this
).text(Math.ceil(now));
}
});
});
</script>
Reply
Answers (
1
)
Redirect to another html page using jquery
How to sort array using java script or jQuery?