{"id":37808,"date":"2017-08-30T21:01:07","date_gmt":"2017-08-30T13:01:07","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=37808"},"modified":"2020-06-29T02:10:44","modified_gmt":"2020-06-28T18:10:44","slug":"parallax-scrolling-stickystack-js","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/","title":{"rendered":"Parallax Scrolling Made Easy With StickyStack.js"},"content":{"rendered":"<p><strong><a href=\"https:\/\/www.hongkiat.com\/blog\/rellaxjs-parallax-script\/\">Parallax effects<\/a><\/strong> grab attention fast. These effects <strong>keep certain backgrounds in view<\/strong> while scrolling down the page. You\u2019ll find parallax scrolling on many websites and <a href=\"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-wordpress-themes\/\">WordPress themes<\/a> and they\u2019re a large part of modern web design.<\/p>\n<p>You can also build a <strong>unique parallax style<\/strong> using the <strong><a href=\"https:\/\/github.com\/mike-zarandona\/StickyStack.js\" target=\"_blank\" rel=\"noopener noreferrer\">StickyStack.js<\/a><\/strong> plugin. It\u2019s <strong>built on jQuery<\/strong> and keeps each main page section stickied to the top as you scroll down.<\/p>\n<p>This creates the <strong>illusion of a layered website<\/strong> where each page \u201cstacks\u201d on top of the other. It\u2019s really cool and pretty easy to set up on your own.<\/p>\n<p>While it\u2019s pretty easy to set up, it does require some understanding of <a href=\"https:\/\/www.hongkiat.com\/blog\/web-dev-youtube-channels\/\">frontend development<\/a>.<\/p>\n<p>You need to first <strong>create individual page sections<\/strong> inside the main container. This way you\u2019ll have <strong>everything enclosed in the HTML<\/strong>, so you can target everything with the StickyStack jQuery function.<\/p>\n<p class=\"note\"><strong>Read Also:<\/strong> <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/web-design-scrolling\/\" rel=\"noopener noreferrer\">15 Examples of Scrolling Done Right in Website Designs<\/a><\/p>\n<p>It also comes with a few options where you can customize the <strong>parent container<\/strong>, the <strong>elements that should stack<\/strong>, and a possible <strong>box shadow<\/strong> if you like that effect.<\/p>\n<p>Here\u2019s a <strong>sample bit of code<\/strong> from the GitHub page:<\/p>\n<pre>\r\n$('.main-content-wrapper').stickyStack({\r\n\tcontainerElement: '.main-content-wrapper',\r\n\tstackingElement: 'section',\r\n\tboxShadow: '0 -3px 20px rgba(0, 0, 0, 0.25)'\r\n});\r\n<\/pre>\n<p>While this hasn\u2019t been updated in about two years, it\u2019s still a very reliable plugin. It <strong>worked in all the browsers I tested<\/strong> (Chrome, Safari, & Firefox) with <strong>support for all versions of jQuery<\/strong>.<\/p>\n<p>Plus, the minified file is <strong>only 2KB<\/strong> which is a decent size for a plugin.<\/p>\n<p>To learn more, visit the <a href=\"https:\/\/github.com\/mike-zarandona\/StickyStack.js\" target=\"_blank\" rel=\"noopener noreferrer\">main repo<\/a> and see what StickyStack can offer. I think it works best on <strong>single-page websites<\/strong> or <strong>landing pages with large fullscreen backgrounds<\/strong>.<\/p>\n<p>You can also check out a <strong>live demo on CodePen<\/strong> if you wanna see how this looks on a live site.<\/p>\n<p><iframe height=\"350\" scrolling=\"no\" title=\"StickyStack.js\" src=\"https:\/\/codepen.io\/mike-zarandona\/embed\/Dasnw\/?height=350&theme-id=0&default-tab=css,result&embed-version=2\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"true\" style=\"width: 100%;\"><\/iframe><\/p>\n<p class=\"note\"><strong>Read Also:<\/strong> <a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/scrolling-effects-js-libraries\/\" rel=\"noopener noreferrer\">JavaScript Libraries for Cool Scrolling Effects<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Parallax effects grab attention fast. These effects keep certain backgrounds in view while scrolling down the page. You\u2019ll find parallax scrolling on many websites and WordPress themes and they\u2019re a large part of modern web design. You can also build a unique parallax style using the StickyStack.js plugin. It\u2019s built on jQuery and keeps each&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3393],"tags":[3497,3769,2644],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Parallax Scrolling Made Easy With StickyStack.js - Hongkiat<\/title>\n<meta name=\"description\" content=\"Parallax effects grab attention fast. These effects keep certain backgrounds in view while scrolling down the page. You&#039;ll find parallax scrolling on many\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Parallax Scrolling Made Easy With StickyStack.js\" \/>\n<meta property=\"og:description\" content=\"Parallax effects grab attention fast. These effects keep certain backgrounds in view while scrolling down the page. You&#039;ll find parallax scrolling on many\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-30T13:01:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-28T18:10:44+00:00\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/parallax-scrolling-stickystack-js\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/parallax-scrolling-stickystack-js\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Parallax Scrolling Made Easy With StickyStack.js\",\"datePublished\":\"2017-08-30T13:01:07+00:00\",\"dateModified\":\"2020-06-28T18:10:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/parallax-scrolling-stickystack-js\\\/\"},\"wordCount\":313,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"keywords\":[\"Javascript Library\",\"parallax effect\",\"parallax scrolling\"],\"articleSection\":[\"Toolkit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/parallax-scrolling-stickystack-js\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/parallax-scrolling-stickystack-js\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/parallax-scrolling-stickystack-js\\\/\",\"name\":\"Parallax Scrolling Made Easy With StickyStack.js - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"datePublished\":\"2017-08-30T13:01:07+00:00\",\"dateModified\":\"2020-06-28T18:10:44+00:00\",\"description\":\"Parallax effects grab attention fast. These effects keep certain backgrounds in view while scrolling down the page. You'll find parallax scrolling on many\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/parallax-scrolling-stickystack-js\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/parallax-scrolling-stickystack-js\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/parallax-scrolling-stickystack-js\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Parallax Scrolling Made Easy With StickyStack.js\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Parallax Scrolling Made Easy With StickyStack.js - Hongkiat","description":"Parallax effects grab attention fast. These effects keep certain backgrounds in view while scrolling down the page. You'll find parallax scrolling on many","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/","og_locale":"en_US","og_type":"article","og_title":"Parallax Scrolling Made Easy With StickyStack.js","og_description":"Parallax effects grab attention fast. These effects keep certain backgrounds in view while scrolling down the page. You'll find parallax scrolling on many","og_url":"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2017-08-30T13:01:07+00:00","article_modified_time":"2020-06-28T18:10:44+00:00","author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Parallax Scrolling Made Easy With StickyStack.js","datePublished":"2017-08-30T13:01:07+00:00","dateModified":"2020-06-28T18:10:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/"},"wordCount":313,"commentCount":1,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"keywords":["Javascript Library","parallax effect","parallax scrolling"],"articleSection":["Toolkit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/","url":"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/","name":"Parallax Scrolling Made Easy With StickyStack.js - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"datePublished":"2017-08-30T13:01:07+00:00","dateModified":"2020-06-28T18:10:44+00:00","description":"Parallax effects grab attention fast. These effects keep certain backgrounds in view while scrolling down the page. You'll find parallax scrolling on many","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/parallax-scrolling-stickystack-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Parallax Scrolling Made Easy With StickyStack.js"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-9PO","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/37808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=37808"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/37808\/revisions"}],"predecessor-version":[{"id":51779,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/37808\/revisions\/51779"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=37808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=37808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=37808"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=37808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}