{"id":135,"date":"2024-05-12T07:54:59","date_gmt":"2024-05-12T07:54:59","guid":{"rendered":"https:\/\/codebox.keyframetechsolution.com\/?p=135"},"modified":"2025-03-02T14:18:50","modified_gmt":"2025-03-02T14:18:50","slug":"vertical-timeline-design","status":"publish","type":"post","link":"https:\/\/codebox.keyframetechsolution.com\/vertical-timeline-design\/","title":{"rendered":"How to Create an Animated Vertical Timeline using HTML CSS and jQuery"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p><span data-preserver-spaces=\"true\">A vertical timeline displays event schedules, project milestones, or historical progressions in sequential order. <\/span><span data-preserver-spaces=\"true\">In this guide, I will show you how to create an animated vertical timeline using HTML CSS and jQuery code.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">By the end, you\u2019ll have a functional timeline design <\/span><span data-preserver-spaces=\"true\">that you can<\/span><span data-preserver-spaces=\"true\"> customize and use in various projects. Let\u2019s get started!<\/span><\/p>\n<p>\u2705 <strong>Watch Live Preview<\/strong> \ud83d\udc49\ud83d\udc49<\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/hEWE-_UX-Wg?si=lkRH8DliGew7Ljaj\" width=\"100%\" height=\"450\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><a href=\"#conclusion\">Click Here to Download the Code<\/a><\/p>\n<div class=\"border-blog-highlight\">\n<h2>Table of contents<\/h2>\n<ul>\n<li><a href=\"#section1\">What is a Vertical timeline?<\/a><\/li>\n<li><a href=\"#section2\">What are the Steps to Create It?<\/a><\/li>\n<li><a href=\"#section3\">Plan for Timeline Layout<\/a><\/li>\n<li><a href=\"#section4\">HTML Code Structure<\/a><\/li>\n<li><a href=\"#section5\">CSS Code Structure<\/a><\/li>\n<li><a href=\"#section6\">jQuery Code Structure<\/a><\/li>\n<li><a href=\"#section7\">Why Use jQuery for a Timeline?<\/a><\/li>\n<li><a href=\"#conclusion\">Conclusion<\/a><\/li>\n<\/ul>\n<\/div>\n<h2 id=\"section1\"><span data-preserver-spaces=\"true\">What is a Vertical timeline? <\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">A vertical timeline is a visual design element <\/span><span data-preserver-spaces=\"true\">that is<\/span><span data-preserver-spaces=\"true\"> used to display events, milestones, or activities in chronological order along a vertical axis.<\/span><\/p>\n<p>It organizes information clearly, making it easy to track progress or history.<\/p>\n<p>It is commonly used in portfolios, resumes, and company history pages to enhance clarity and visual appeal.<\/p>\n<h3><span data-preserver-spaces=\"true\">Why Use It?<\/span><\/h3>\n<ul>\n<li><strong><span data-preserver-spaces=\"true\">Clarity<\/span><\/strong><span data-preserver-spaces=\"true\">: It helps present sequential information in a clean and structured way.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">Engagement<\/span><\/strong><span data-preserver-spaces=\"true\">: Makes data more visually appealing compared to a plain list.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">Responsiveness<\/span><\/strong><span data-preserver-spaces=\"true\">: Adapts well to different screen sizes, especially on mobile devices.<\/span><\/li>\n<\/ul>\n<h3 id=\"section2\"><span data-preserver-spaces=\"true\">What are the Steps to Create It?<\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">Here\u2019s an overview of the process:<\/span><\/p>\n<ol>\n<li><span data-preserver-spaces=\"true\">Plan the structure of your timeline.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Write the basic HTML for the timeline layout.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Style the timeline using CSS.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Add interactivity using jQuery code.<\/span><\/li>\n<\/ol>\n<p><strong>Similar Posts:<\/strong> <a href=\"https:\/\/codebox.keyframetechsolution.com\/responsive-vertical-timeline\/\">How to Build a Responsive Vertical Timeline using HTML CSS and JavaScript<\/a><\/p>\n<h3 id=\"section3\"><span data-preserver-spaces=\"true\">Plan for Timeline Layout<\/span><\/h3>\n<p><span data-preserver-spaces=\"true\">Before writing any code, take a moment to visualize how the timeline will look. A typical design includes:<\/span><\/p>\n<ul>\n<li><span data-preserver-spaces=\"true\">A central line indicates the timeline path.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Items (or events) are<\/span> <span data-preserver-spaces=\"true\">positioned alternately on either side of the line.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">A title or description for each event.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Icons or markers to highlight key events.<\/span><\/li>\n<\/ul>\n<h3>Set Up Your Project Folder<\/h3>\n<p>Create a folder on your computer and add the following files inside it:<\/p>\n<ul>\n<li><strong>index.html<\/strong><\/li>\n<li><strong>style.css<\/strong><\/li>\n<li><strong>script.js<\/strong><\/li>\n<\/ul>\n<h2>Source Code<\/h2>\n<h3 id=\"section4\"><span data-preserver-spaces=\"true\">HTML Code Structure<\/span><\/h3>\n<div class=\"code-container\">\n<div class=\"toolbar\">\n<div class=\"actions\">\n        <span><\/span><br \/>\n        <span class=\"yellow\"><\/span><br \/>\n        <span class=\"green\"><\/span>\n      <\/div>\n<div class=\"title\">index.html<\/div>\n<\/div>\n<div class=\"code-content\">\n<pre><code class=\"language-markup\">\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"en\"&gt;\r\n&lt;head&gt;\r\n  &lt;meta charset=\"UTF-8\"&gt;\r\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\r\n  &lt;title&gt;Animated Vertical Timeline using HTML CSS &amp; jQuery&lt;\/title&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"style.css\"&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/4.7.0\/css\/font-awesome.min.css\"&gt;\r\n  &lt;script src=\"https:\/\/code.jquery.com\/jquery-3.5.1.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/typed.js\/2.0.11\/typed.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/waypoints\/4.0.1\/jquery.waypoints.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;link rel=\"stylesheet\" href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@400;500;600;700&amp;family=Ubuntu:wght@400;500;700&amp;display=swap\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;!-- CODE --&gt;\r\n\r\n&lt;script src=\"script.js\"&gt;&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<h3 id=\"section5\">CSS Code Structure<\/h3>\n<div class=\"code-container\">\n<div class=\"toolbar\">\n<div class=\"actions\">\n        <span><\/span><br \/>\n        <span class=\"yellow\"><\/span><br \/>\n        <span class=\"green\"><\/span>\n      <\/div>\n<div class=\"title\">style.css<\/div>\n<\/div>\n<div class=\"code-content\">\n<pre><code class=\"language-markup\">\r\n&lt; \/* Your CSS code here *\/ &gt;\r\n&lt; * { &gt;\r\n\r\n&lt; margin: 0; &gt;\r\n&lt; padding: 0 &gt;\r\n&lt; box-sizing: border-box; &gt;\r\n&lt;     text-decoration: none; &gt;\r\n&lt;     } &gt;\r\n      <\/code><\/pre>\n<\/div>\n<\/div>\n<h3 id=\"section6\">jQuery Code Structure<\/h3>\n<div class=\"code-container\">\n<div class=\"toolbar\">\n<div class=\"actions\">\n        <span><\/span><br \/>\n        <span class=\"yellow\"><\/span><br \/>\n        <span class=\"green\"><\/span>\n      <\/div>\n<div class=\"title\">script.js<\/div>\n<\/div>\n<div class=\"code-content\">\n<pre><code class=\"language-markup\">\r\n&lt; \/\/ jQuery Code &gt;\r\n      <\/code><\/pre>\n<\/div>\n<\/div>\n<h2 id=\"section7\"><span data-preserver-spaces=\"true\">Why Use jQuery for a Timeline?<\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">jQuery simplifies <a href=\"https:\/\/www.freecodecamp.org\/news\/dom-manipulation-in-javascript\/\" rel=\"nofollow noopener\" target=\"_blank\">DOM manipulation<\/a> and event handling which makes it easier to build interactive components. <\/span><\/p>\n<p>While modern JavaScript achieves similar results, jQuery offers a quick and simple solution for developers who prefer its syntax.<\/p>\n<h3><span data-preserver-spaces=\"true\">Test and Customize<\/span><\/h3>\n<ul>\n<li><strong><span data-preserver-spaces=\"true\">Test Responsiveness<\/span><\/strong><span data-preserver-spaces=\"true\">: Resize your browser window to ensure the timeline adapts to smaller screens. Adjust padding or font sizes in the CSS as needed.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">Add More Features<\/span><\/strong><span data-preserver-spaces=\"true\">: Enhance the timeline with icons, images, or tooltips for each event.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">Experiment with Animations<\/span><\/strong><span data-preserver-spaces=\"true\">: Use additional CCS animations and jQuery for smoother interactions.<\/span><\/li>\n<\/ul>\n<h3><span data-preserver-spaces=\"true\">Key Customization Tips<\/span><\/h3>\n<ul>\n<li><strong><span data-preserver-spaces=\"true\">Icons<\/span><\/strong><span data-preserver-spaces=\"true\">: Add icons to each timeline event to make it more visually appealing. You can use a library like <a href=\"https:\/\/fontawesome.com\/\" rel=\"nofollow noopener\" target=\"_blank\">Font Awesome<\/a> for easy integration.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">Colors<\/span><\/strong><span data-preserver-spaces=\"true\">: Customize the colors to match your website\u2019s theme. Change the line, marker, and content background colors in the CSS.<\/span><\/li>\n<li><strong><span data-preserver-spaces=\"true\">Responsiveness<\/span><\/strong><span data-preserver-spaces=\"true\">: Ensure your timeline looks good on all devices by using media queries to adjust the layout for mobile screens.<\/span><\/li>\n<\/ul>\n<p><strong>Also read:\u00a0<\/strong><a href=\"https:\/\/codebox.keyframetechsolution.com\/credit-card-form-html-css-jquery\/\">How to Build a Responsive Credit Card Form with HTML CSS &amp; jQuery<\/a><\/p>\n<h2 id=\"conclusion\"><span data-preserver-spaces=\"true\">Conclusion<\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">Building a timeline is an excellent project, whether you&#8217;re a beginner or advanced. It will enhance your web development skills. You can use it for various purposes, from showcasing personal milestones to highlighting professional achievements. <\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Be sure to<\/span><span data-preserver-spaces=\"true\"> test it thoroughly and customize it to meet your project\u2019s needs.<\/span> <span data-preserver-spaces=\"true\">Now, it\u2019s your turn to start building an animated vertical timeline.<\/span><\/p>\n<p><strong><i class=\"fa fa-download\" style=\"color: #046bd2;\"><\/i> 15 people bought this<\/strong><\/p>\n<p><strong>Grab it Now for Just <i class=\"fa fa-rupee\" style=\"color: #046bd2;\"><\/i><span style=\"color: #046bd2;\">50<\/span><\/strong> <del>\u20b9100<\/del><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction A vertical timeline displays event schedules, project milestones, or historical progressions in sequential order. In this guide, I will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":137,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[88,351],"tags":[343,297,298,296],"class_list":["post-135","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-designs","category-offer","tag-animated-vertical-timeline","tag-responsive-vertical-timeline","tag-vertical-timeline-design-css","tag-vertical-timeline-html-css"],"acf":[],"_links":{"self":[{"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/posts\/135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/comments?post=135"}],"version-history":[{"count":23,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":1676,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/posts\/135\/revisions\/1676"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/media\/137"}],"wp:attachment":[{"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/categories?post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codebox.keyframetechsolution.com\/wp-json\/wp\/v2\/tags?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}