{"id":6982,"date":"2024-10-30T18:32:19","date_gmt":"2024-10-30T18:32:19","guid":{"rendered":"https:\/\/obo.zoj.mybluehost.me\/?p=6982"},"modified":"2026-01-28T15:37:49","modified_gmt":"2026-01-28T15:37:49","slug":"how-to-use-odometer","status":"publish","type":"post","link":"https:\/\/ioninteractive.com\/ionacademy\/how-to-use-odometer\/","title":{"rendered":"How to use Odometer"},"content":{"rendered":"\n<p class=\"\">Odometer is a scipt that animates smooth transitions between numbers. This interactive component smoothly transitions the digits upwards, creating a visually engaging effect that draws attention and emphasizes the significance of the number.<br><br><strong>Add Script to the Library<br><\/strong><br>1. To Begin, download the script file <a href=\"https:\/\/drive.google.com\/file\/d\/1XAIkV0C2ehq96l-3cBPfjs3rhVWzPGrP\/view?usp=drive_link\">here<\/a>.<br>2. Go to Libraries > Scripts > Custom and click New Script. <br>3. Save script \u201cHead &#8211; Odometer\u201d in your console.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"792\" loading=\"lazy\" src=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-1-1024x792.png\" alt=\"\" class=\"wp-image-8646\" srcset=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-1-1024x792.png 1024w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-1-300x232.png 300w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-1-768x594.png 768w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-1-1536x1187.png 1536w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-1.png 1643w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"791\" loading=\"lazy\" src=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-1024x791.png\" alt=\"\" class=\"wp-image-8643\" srcset=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-1024x791.png 1024w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-300x232.png 300w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-768x593.png 768w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-1536x1186.png 1536w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image.png 1643w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"\">4. To add this script to a creative in the future, you can simply follow the instructions below:<br><br><strong>Adding Odometer to the creative<\/strong><\/p>\n\n\n\n<p class=\"\">1. Add the &#8220;Head &#8211; Odometer&#8221; script found in the &#8220;Custom Scripts&#8221; category to the head of the creative. Add the &#8220;Body- Odometer&#8221; script found in the &#8220;Custom Scripts&#8221; category to the body of the creative.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"835\" height=\"1024\" loading=\"lazy\" src=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-2-835x1024.png\" alt=\"\" class=\"wp-image-8648\" srcset=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-2-835x1024.png 835w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-2-245x300.png 245w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-2-768x941.png 768w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-2.png 881w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/figure>\n\n\n\n<p class=\"\">2. Select or add a text element on the page and edit it by selecting Standard Text making sure HTML is toggled on and then paste the following code:<\/p>\n\n\n\n<p class=\"\"><strong>&lt;span class=&#8221;odometer&#8221; data-delay=&#8221;0&#8243; data-prev=&#8221;0&#8243; data-val=&#8221;64&#8243;&gt;0&lt;\/span&gt;%<\/strong><\/p>\n\n\n\n<p class=\"\">a. the data-val=&#8221;64&#8243; sets the final number of the odometer<\/p>\n\n\n\n<p class=\"\">b. the &gt;0&lt;\u2006 \u2006 sets the starting number of the odometer<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"928\" height=\"485\" loading=\"lazy\" src=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-3.png\" alt=\"\" class=\"wp-image-8650\" srcset=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-3.png 928w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-3-300x157.png 300w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-3-768x401.png 768w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><\/figure>\n\n\n\n<p class=\"\">3. Save your changes and test.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1003\" height=\"354\" loading=\"lazy\" src=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-4.png\" alt=\"\" class=\"wp-image-8652\" srcset=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-4.png 1003w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-4-300x106.png 300w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2024\/10\/image-4-768x271.png 768w\" sizes=\"auto, (max-width: 1003px) 100vw, 1003px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Odometer is a scipt that animates smooth transitions between numbers. This interactive component smoothly transitions the digits upwards, creating a visually engaging effect that draws attention and emphasizes the significance of the number. Add [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[1],"tags":[2086,2421],"class_list":["post-6982","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-interactive-components","tag-odometer"],"_links":{"self":[{"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/posts\/6982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/comments?post=6982"}],"version-history":[{"count":3,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/posts\/6982\/revisions"}],"predecessor-version":[{"id":8653,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/posts\/6982\/revisions\/8653"}],"wp:attachment":[{"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/media?parent=6982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/categories?post=6982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/tags?post=6982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}