Loading...
Home Page
About
Marketplace
Sample page
Wishlist at dev site
Sitemap (Categories)
Tiki Customization
Creating a theme
Converting a Bootstrap theme
Contributing, sharing or selling
Customizing icons
Tips
Template Tricks
CSS Tricks
Feature Examples
Articles
Blogs
Calendar
Forums
FAQs
Trackers
Files
Links Directory
Wiki Pages
Find
History: Tiki project sites page header scrolling
View published page
Source of version: 1
(current)
To get the behavior at the Tiki project sites in which the Top module zone scrolls upward out of site and the Topbar module zone sticks to the browser top edge, a custom module containing JavaScript is put in the Bottom module zone. The custom module is called "Hide Fixed Top Nav Bar on Scroll (0.2)" (this can be any name, of course), and the module is given the 'nobox="y"' parameter. Here is the content/data of that custom module: {CODE()} {jq}{literal} $(document).ready(function () { var resetCSS = { transition: 'all .5s ease 0s', top: '', height: '', minHeight: '', opacity: '', overflow: '' }; $(window).on("scroll", function () { if ($(window).scrollTop() > 10) { $('.navbar-fixed-top').css({ transition: 'all .75s ease 0s', top: '-20px', height: '25px', minHeight: '5px', opacity: '.75', overflow: 'hidden' }); $('html:not(#page_1) .topbar_wrapper').css({ position: 'fixed', top: '7px', width: '100%', left: 0, 'z-index': 3 }); $("html:not(#page_1) .topbar").css({ "box-shadow": "0 5px 10px 0px rgba(0,0,0,.25)" }); } else { $('.navbar-fixed-top').css(resetCSS); $(".topbar_wrapper").removeAttr('style'); $(".topbar").removeAttr('style'); } }); $('.navbar-fixed-top').on('mouseover', function () { $(this).css(resetCSS); $('html:not(#page_1) .topbar_wrapper').css({ top: '48px' }); }); }); {/literal}{/jq} {CODE} The pixel distances can be adjusted as necessary.
Layout
Stay on this page
Default
Single Container
Classic Bootstrap
Classic Tiki (3 containers - header, middle, footer)
Tikipedia
Latest Changes
Included themes
Materia
Ohia
Themes
Making or Updating a Theme for Tiki 27
Updating a Theme for Tiki 26
Tiki_org_family_customizations_CSS
BookStacked
Make an SCSS-Compiled Tiki Theme
Contributing, sharing or selling a theme
...more
Subscribe to Tiki Newsletters!
Delivered fresh to your email inbox!
Don't miss major announcements and other big news!
Site Config
Site upgraded to branch 26x
Wed 21 of Jun, 2023 09:45 GMT-0000
Site upgraded to branch 25x
Sat 12 of Nov, 2022 17:00 GMT-0000
Site upgraded to Tiki 23.x
Sat 24 of Jul, 2021 00:30 GMT-0000
Site upgraded to Tiki 20
Wed 29 of May, 2019 07:57 GMT-0000
We are now on Tiki 19.x
Fri 05 of Oct, 2018 10:02 GMT-0000
Shoutbox module removed
Thu 28 of Jun, 2018 07:01 GMT-0000
We are now on Tiki 18.x
Wed 02 of May, 2018 08:46 GMT-0000
Upgraded to Tiki 17.0
Wed 02 of Aug, 2017 08:19 GMT-0000
Upgraded to Tiki 15.0alpha
Tue 08 of Mar, 2016 13:34 GMT-0000