Widget Demos
UI Components
Marketing
Content Display
Navigation
Notifications
Visual Effects
Interactive
Layout
UI Components
Scroll To Top Widget
A floating button that appears after scrolling and smoothly scrolls to the top of the page when clicked. Configurable position, size, and shape.
Feature Disabled
The scrollNavigation feature is currently disabled. Enable it in params.php to see live demos.
Default (Bottom Right)
Standard scroll-to-top button in the bottom-right corner. Scroll down to see it appear.
This widget appears only after scrolling down the page.
Code
<?php echo ScrollToTopWidget::widget(); ?>Live Demo
Enable the feature to see live demo.
Large Rounded
Larger button with rounded corners.
Preview shown statically. In production, appears on scroll.
Code
<?php echo ScrollToTopWidget::widget([
'size' => 'large',
'shape' => 'rounded',
]); ?>Live Demo
Enable the feature to see live demo.
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
position | string | bottom-right | Position: bottom-right, bottom-left, top-right, top-left |
size | string | medium | Size: small, medium, large |
shape | string | circle | Shape: circle, rounded, square |
icon | string | fas fa-arrow-up | FontAwesome icon class |
forceShow | bool | false | Show even if disabled in config |