{"id":705,"date":"2017-02-21T10:53:04","date_gmt":"2017-02-21T10:53:04","guid":{"rendered":"http:\/\/blog.azoora.com\/?p=705"},"modified":"2018-11-22T07:17:24","modified_gmt":"2018-11-22T07:17:24","slug":"horizontal-timeline-powered-by-css-and-jquery","status":"publish","type":"post","link":"https:\/\/azoora.com\/blog\/javascript\/horizontal-timeline-powered-by-css-and-jquery\/","title":{"rendered":"Horizontal Timeline Powered by CSS and jQuery"},"content":{"rendered":"<p><a href=\"https:\/\/codyhouse.co\/gem\/vertical-timeline\/\" target=\"_blank\" rel=\"noopener\">Vertical timeline<\/a>\u00a0is so far one of the most popular resources on CodyHouse. Many people have asked them to include a\u00a0<a href=\"https:\/\/codyhouse.co\/gem\/horizontal-timeline\/\" target=\"_blank\" rel=\"noopener\">Horizontal Timeline<\/a>\u00a0as well. Here it is! Building a horizontal timeline was a bit tricky, because you can\u2019t rely on the vertical (more intuitive) scrolling behaviour. They decided to separate timeline and events, with the first one working like a slider, while the second one occupying the full width and showing a single event at a time.<\/p>\n<p>About the timeline: the position of each date along the timeline is set using jQuery. Dates are not equally distributed along the timeline, but the distance between a date and the next one is proportional to the difference between these dates.<\/p>\n<blockquote><p>Requirements: jQuery Framework<br \/>\nDemo:\u00a0<a title=\"demo\" href=\"https:\/\/codyhouse.co\/demo\/horizontal-timeline\/index.html\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/codyhouse.co\/demo\/horizontal-timeline\/index.html<\/a><br \/>\nLicense: License Free<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Vertical timeline\u00a0is so far one of the most popular resources on CodyHouse. Many people have asked them to include a\u00a0Horizontal Timeline\u00a0as well. Here it is! Building a horizontal timeline was a bit tricky, because you can\u2019t rely on the vertical (more intuitive) scrolling behaviour. They decided to separate timeline and events, with the first one [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":707,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[12],"tags":[20,16],"jetpack_featured_media_url":"https:\/\/azoora.com\/blog\/wp-content\/uploads\/2017\/08\/horizontal-timeline-726x454.jpg","jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p7FQPL-bn","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/705"}],"collection":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/comments?post=705"}],"version-history":[{"count":5,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/705\/revisions"}],"predecessor-version":[{"id":1564,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/705\/revisions\/1564"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/media\/707"}],"wp:attachment":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/media?parent=705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/categories?post=705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/tags?post=705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}