Logo Logo Nue Package
Getting Started Introduction
Getting Started Gulp
Getting Started Customization
Getting Started Credits
Getting Started Changelog
Design & Graphics Bootstrap Icons
Design & Graphics Illustrations
Components Accordion
Components Alerts
Components Avatars
Components Badge
Components Breadcrumb
Components Buttons
Components Button group
Components Cards
Components Collapse
Components Column divider
Components Devices
Components Divider
Components Dropdowns
Components Icons
Components List Group
Components Lists
Components Legend Indicator
Components Modal
Components Offcanvas
Components Page Header
Components Pagination
Components Popovers
Components Progress
Components Profile
Components Shapes
Components Sliding Image
Components Spinners
Components Steps
Components Tab
Components Toasts
Components Tooltips
Components Typography
Navbars Navbar
Navbars Navs
Navbars Mega Menu
Navbars Navbar Vertical Aside
Navbars Scrollspy
Tables Tables
Tables Datatables
Tables Sticky Header
Basic forms Basic forms
Basic forms Checks and switches
Basic forms Input group
Utilities Backgrounds
Utilities Borders
Utilities Colors
Utilities Links
Utilities Position
Utilities Rotations
Utilities Shadows
Utilities Sizing
Utilities Spacing
Utilities Z-index
Utilities Opacity
Advanced forms Advanced select
Advanced forms Datepicker
Advanced forms Date Range Picker
Advanced forms Calendar (Fullcalendar)
Advanced forms File attachments
Advanced forms Drag’ n’ drop file uploads
Advanced forms WYSIWYG Editor
Advanced forms Quantity counter
Advanced forms Copy to Clipboard
Advanced forms Input mask
Advanced forms Step forms (Wizards)
Advanced forms Wizards
Advanced forms Add field
Advanced forms Toggle password
Advanced forms Count characters
Advanced forms Form Search
Advanced forms Toggle switch
Advanced forms Google reCAPTCHA
Others Chart.js
Others Counter
Others Circles.js (Pie Chart)
Others Fullscreen Lightbox
Others Leaflet
Others JSVectorMap
Others SortableJS
Others Sticky block
Others Go To

No Results

  • Preview Demo
Logo Nµe
  • Nue
  • UI (HTML)
  • Getting Started
  • Introduction
  • Credits
  • Design & Graphics
  • Bootstrap Icons
  • Iconify Design
  • Illustrations
  • Components
  • Accordion
  • Alerts
  • Avatars
  • Badge
  • Breadcrumb
  • Buttons
  • Button Group
  • Cards
  • Collapse
  • Column Divider
  • Devices
  • Divider
  • Dropdowns
  • Icons
  • List Group
  • Lists
  • Legend Indicator
  • Modal
  • Offcanvas
  • Page Header
  • Pagination
  • Popovers
  • Progress
  • Profile
  • Shapes
  • Sliding Image
  • Spinners
  • Steps
  • Tab
  • Toasts
  • Tooltips
  • Typography
  • Navbars
  • Navbar
  • Navs
  • Mega Menu
  • Navbar Vertical Aside
  • Scrollspy
  • Tables
  • Tables
  • Datatables
  • Sticky Header
  • Basic Forms
  • Basic Forms
  • Checks & Switches
  • Input Group
  • Advanced Forms
  • Advanced Select
  • Datepicker (Flatpickr)
  • Date Range Picker
  • Calendar (Fullcalendar)
  • File Attachments
  • Drag n' Drop Uploads
  • WYSIWYG Editor
  • Quantity Counter
  • Copy to Clipboard
  • Input Mask
  • Step Forms (Wizards)
  • Add Field
  • Toggle Password
  • Count Characters
  • Form Search
  • Toggle Switch
  • Google reCAPTCHA
  • Charts
  • Chart.js
  • Counter
  • Circles.js (Pie Chart)
  • Others
  • Fullscreen Lightbox
  • Leaflet
  • JSVectorMap
  • SortableJS
  • Sticky Block
  • Go To
  • Utility
  • Backgrounds
  • Borders
  • Colors
  • Links
  • Position
  • Shadows
  • Sizing
  • Spacing
  • Z-Index
  • Opacity

Go To

Cara Pakai

Copy-paste script berikut sebelum tag penutup <body>:

    
      <script>
        (function() {
          // INITIALIZATION OF GO TO
          // =======================================================
          document.querySelectorAll('.js-go-to').forEach(item => {
            new NueGoTo(item).init()
          })
        });
      </script>
    
  

Example

Below is a static Go to (meaning its position have been overridden for demonstration purposes. However the HTML markups in the clipboard are not).

  • Preview
  • HTML
        
          <!-- Go to -->
          <a class="js-go-to go-to position-fixed" href="javascript:;" style="visibility: hidden;"
             data-nue-go-to-options='{
               "offsetTop": 700,
               "position": {
                 "init": {
                   "right": 32
                 },
                 "show": {
                   "bottom": 32
                 },
                 "hide": {
                   "bottom": -32
                 }
               }
             }'>
            <i class="bi-chevron-up"></i>
          </a>
          <!-- End Go to -->
        
      

Referenced to a page

  • Preview
  • HTML
        
          <!-- Go to -->
          <a class="js-go-to go-to position-fixed" href="" style="visibility: hidden;"
             data-nue-go-to-options='{
               "isReferencedToOtherPage": 700
               "offsetTop": 700,
               "position": {
                 "init": {
                   "right": 32
                 },
                 "show": {
                   "bottom": 32
                 },
                 "hide": {
                   "bottom": -32
                 }
               }
             }'>
            <i class="bi-chevron-up"></i>
          </a>
          <!-- End Go to -->
        
      

Methods

ParametersDescriptionDefault value
targetSelectorAn element to which the browser window will scroll, by clicking on the element to be initializednull
compensationSelectorAn element whose height will be taken into account when calculating the point, upon reaching which the scroll will endnull
animationInitName of the class that is responsible for the activation of css animation'animated'
animationInName of the class, css-animation, which is given when the initialized element'fadeIn'
animationOutName of the class, css-animation, which is given when the initialized element disappears'fadeOut'
durationAnimation duration400
offsetTopDistance that must be scrolled for the initialized object to appear0
position.initCSS properties top || bottom || left || right, which are added when the element is initializednull
position.hideCSS properties top || bottom || left || right, which are added when the element is disappearsnull
position.showCSS properties top || bottom || left || right, which are added when an element appearsnull
isReferencedToOtherPageif true, then allows you to go to another page, disabling the scroll function to the element specified in targetSelectornull