{"id":35484,"date":"2016-06-17T10:57:05","date_gmt":"2016-06-17T05:27:05","guid":{"rendered":"https:\/\/tothenewco.pro\/blog\/?p=35484"},"modified":"2016-06-17T17:49:30","modified_gmt":"2016-06-17T12:19:30","slug":"header-scroll-animation","status":"publish","type":"post","link":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/","title":{"rendered":"Header Scroll Animation"},"content":{"rendered":"<p>In this ever revolutionising industry, there is constant innovation happening that keeps us wondering how small enhancements can make our life easier and smoother. Same hold true when it comes to innovations that <a href=\"https:\/\/tothenewco.pro\/front-end-angularjs-development\">improve user experience<\/a> over the web\/mobile.<\/p>\n<p>Every now and then, we see advancements in UI practices that evidently improve the user experience &amp; further, add more creativity to the interface, making the user journey more interesting &amp; engaging.<\/p>\n<p>In this blog, I would like to elaborate on one such creativity, which is Header Scroll Animation.<\/p>\n<p>Here is the description to create a header scroll animation :-<\/p>\n<p>1) Here is the HTML Code:-<\/p>\n<p>[java]<br \/>\n&lt;body&gt;<br \/>\n&lt;div class=&quot;header&quot;&gt;<br \/>\n  &lt;div id=&quot;header-scroll&quot;&gt; &lt;h1&gt;Header Scroll Effect&lt;\/h1&gt;&lt;\/div&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/body&gt;<br \/>\n[\/java]<\/p>\n<p>2) Here is the CSS code:<\/p>\n<p>[java]<br \/>\n&lt;style type=&quot;text\/css&quot;&gt;<br \/>\n\t.header {<br \/>\n    height:800px;<\/p>\n<p>}<br \/>\n#header-sroll {<br \/>\n    position:fixed;<br \/>\n    height: 100px;<br \/>\n    background:#ccc;<br \/>\n    left:0;<br \/>\n    top:0;<br \/>\n    float:left;<br \/>\n    width:100%;<br \/>\n    -ms-transition:     all 0.3s ease-out;<br \/>\n    -moz-transition:    all 0.3s ease-out;<br \/>\n    -webkit-transition: all 0.3s ease-out;<br \/>\n    -o-transition:      all 0.3s ease-out;<br \/>\n    transition:         all 0.3s ease-out;<br \/>\n}<br \/>\n#header-sroll h1 {<br \/>\n    font-size: 30px;<br \/>\n    font-family: Arial;<br \/>\n    text-align: center;<br \/>\n    line-height: 50px;<br \/>\n     -ms-transition:     all 0.3s ease-out;<br \/>\n    -moz-transition:    all 0.3s ease-out;<br \/>\n    -webkit-transition: all 0.3s ease-out;<br \/>\n    -o-transition:      all 0.3s ease-out;<br \/>\n    transition:         all 0.3s ease-out;<br \/>\n}<br \/>\n#header-sroll.small {<br \/>\n    height: 70px;<br \/>\n    line-height: 35px;<br \/>\n}<br \/>\n#header-sroll.small h1{<br \/>\n    height: 70px;<br \/>\n    line-height: 35px;<br \/>\n    font-size: 25px;<br \/>\n}<br \/>\n&lt;\/style&gt;<br \/>\n[\/java]<\/p>\n<p>3) And finally, let\u2019s have a look at the jQuery code given below:<\/p>\n<p>[java]<br \/>\n&lt;script&gt;<br \/>\n$(window).scroll(function () {<br \/>\n     var sc = $(window).scrollTop()<br \/>\n    if (sc &gt; 0) {<br \/>\n        $(&quot;#header-scroll&quot;).addClass(&quot;small&quot;)<br \/>\n    } else {<br \/>\n        $(&quot;#header-scroll&quot;).removeClass(&quot;small&quot;)<br \/>\n    }<br \/>\n});<br \/>\n&lt;\/script&gt;<br \/>\n[\/java]<\/p>\n<p>The final section that above has the JQuery Code which will add the class named &#8220;small&#8221;. When this class is added with id &#8220;header-scroll&#8221; the header scroll animation renders.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this ever revolutionising industry, there is constant innovation happening that keeps us wondering how small enhancements can make our life easier and smoother. Same hold true when it comes to innovations that improve user experience over the web\/mobile. Every now and then, we see advancements in UI practices that evidently improve the user experience [&hellip;]<\/p>\n","protected":false},"author":607,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":15,"footnotes":""},"categories":[1],"tags":[3508,3507,3506,3510,3509],"class_list":["post-35484","post","type-post","status-publish","format-standard","hentry","category-technology","tag-animated-fixed-header","tag-animated-resizing-header-on-scroll","tag-animated-sticky-header","tag-on-scroll-header-effects","tag-simple-onscroll-animated-header"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In this ever revolutionising industry, there is constant innovation happening that keeps us wondering how small enhancements can make our life easier and smoother. Same hold true when it comes to innovations that improve user experience over the web\/mobile. Every now and then, we see advancements in UI practices that evidently improve the user experience\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Samson Gill\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Header Scroll Animation | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In this ever revolutionising industry, there is constant innovation happening that keeps us wondering how small enhancements can make our life easier and smoother. Same hold true when it comes to innovations that improve user experience over the web\/mobile. Every now and then, we see advancements in UI practices that evidently improve the user experience\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Header Scroll Animation | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In this ever revolutionising industry, there is constant innovation happening that keeps us wondering how small enhancements can make our life easier and smoother. Same hold true when it comes to innovations that improve user experience over the web\/mobile. Every now and then, we see advancements in UI practices that evidently improve the user experience\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/header-scroll-animation\\\/#article\",\"name\":\"Header Scroll Animation | TO THE NEW Blog\",\"headline\":\"Header Scroll Animation\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/samson\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2016-06-17T10:57:05+05:30\",\"dateModified\":\"2016-06-17T17:49:30+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/header-scroll-animation\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/header-scroll-animation\\\/#webpage\"},\"articleSection\":\"Technology, Animated Fixed Header, Animated Resizing Header On Scroll, animated sticky header, On Scroll Header Effects, Simple onscroll animated header\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/header-scroll-animation\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/header-scroll-animation\\\/#listItem\",\"name\":\"Header Scroll Animation\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/header-scroll-animation\\\/#listItem\",\"position\":3,\"name\":\"Header Scroll Animation\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/samson\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/samson\\\/\",\"name\":\"Samson Gill\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/header-scroll-animation\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/f8c2008f-50ba-48bd-83a0-6358b78b6912_1634-Samson-Gill-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Samson Gill\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/header-scroll-animation\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/header-scroll-animation\\\/\",\"name\":\"Header Scroll Animation | TO THE NEW Blog\",\"description\":\"In this ever revolutionising industry, there is constant innovation happening that keeps us wondering how small enhancements can make our life easier and smoother. Same hold true when it comes to innovations that improve user experience over the web\\\/mobile. Every now and then, we see advancements in UI practices that evidently improve the user experience\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/header-scroll-animation\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/samson\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/samson\\\/#author\"},\"datePublished\":\"2016-06-17T10:57:05+05:30\",\"dateModified\":\"2016-06-17T17:49:30+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Header Scroll Animation | TO THE NEW Blog","description":"In this ever revolutionising industry, there is constant innovation happening that keeps us wondering how small enhancements can make our life easier and smoother. Same hold true when it comes to innovations that improve user experience over the web\/mobile. Every now and then, we see advancements in UI practices that evidently improve the user experience","canonical_url":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/#article","name":"Header Scroll Animation | TO THE NEW Blog","headline":"Header Scroll Animation","author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/samson\/#author"},"publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"},"datePublished":"2016-06-17T10:57:05+05:30","dateModified":"2016-06-17T17:49:30+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/#webpage"},"isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/#webpage"},"articleSection":"Technology, Animated Fixed Header, Animated Resizing Header On Scroll, animated sticky header, On Scroll Header Effects, Simple onscroll animated header"},{"@type":"BreadcrumbList","@id":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/tothenewco.pro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/tothenewco.pro\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/#listItem","name":"Header Scroll Animation"},"previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/#listItem","position":3,"name":"Header Scroll Animation","previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/tothenewco.pro\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/tothenewco.pro\/blog\/"},{"@type":"Person","@id":"https:\/\/tothenewco.pro\/blog\/author\/samson\/#author","url":"https:\/\/tothenewco.pro\/blog\/author\/samson\/","name":"Samson Gill","image":{"@type":"ImageObject","@id":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/f8c2008f-50ba-48bd-83a0-6358b78b6912_1634-Samson-Gill-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Samson Gill"}},{"@type":"WebPage","@id":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/#webpage","url":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/","name":"Header Scroll Animation | TO THE NEW Blog","description":"In this ever revolutionising industry, there is constant innovation happening that keeps us wondering how small enhancements can make our life easier and smoother. Same hold true when it comes to innovations that improve user experience over the web\/mobile. Every now and then, we see advancements in UI practices that evidently improve the user experience","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/#breadcrumblist"},"author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/samson\/#author"},"creator":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/samson\/#author"},"datePublished":"2016-06-17T10:57:05+05:30","dateModified":"2016-06-17T17:49:30+05:30"},{"@type":"WebSite","@id":"https:\/\/tothenewco.pro\/blog\/#website","url":"https:\/\/tothenewco.pro\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Header Scroll Animation | TO THE NEW Blog","og:description":"In this ever revolutionising industry, there is constant innovation happening that keeps us wondering how small enhancements can make our life easier and smoother. Same hold true when it comes to innovations that improve user experience over the web\/mobile. Every now and then, we see advancements in UI practices that evidently improve the user experience","og:url":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/","og:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Header Scroll Animation | TO THE NEW Blog","twitter:description":"In this ever revolutionising industry, there is constant innovation happening that keeps us wondering how small enhancements can make our life easier and smoother. Same hold true when it comes to innovations that improve user experience over the web\/mobile. Every now and then, we see advancements in UI practices that evidently improve the user experience","twitter:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"35484","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 16:58:02","updated":"2024-02-29 09:28:21","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHeader Scroll Animation\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/tothenewco.pro\/blog"},{"label":"Technology","link":"https:\/\/tothenewco.pro\/blog\/category\/technology\/"},{"label":"Header Scroll Animation","link":"https:\/\/tothenewco.pro\/blog\/header-scroll-animation\/"}],"_links":{"self":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/35484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/users\/607"}],"replies":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/comments?post=35484"}],"version-history":[{"count":0,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/35484\/revisions"}],"wp:attachment":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/media?parent=35484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/categories?post=35484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/tags?post=35484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}