Scroll Hints

Description
Scroll Hints
Make your website or app’s scrollable areas look amazing with Scroll Hints.
Scroll hints are elegant shadows and fades that prompt a user that there is more content if they scroll in the direction of the hint. The shadows are intelligent and only appear on the sides that have more content. What’s more, the hints respond to your scrolling and hide when you reach the end of the content. It looks great on tables, grids, image gallaries, charts and more.
Note: This component requires zero configuration but can be fully customized if needed.
Supports
This component uses the browser-native web component API so it can be used in any HTML webpage and with any framework including:
- React
- Angular
- Vue
- HTML/JavaScript
Includes
- scroll-hints.js // Cross-browser script
- scroll-hints.mjs // Optimal script for modern browsers only
- scroll-hints-react.js // Script for React apps
Install
HTML
<!-- Include the downloaded script file -->
<script type="module" src="./path/to/your/scroll-hints.mjs"></script>
<scroll-hints>
<!-- scrollable content goes here -->
</scroll-hints>
React
MyComponent.js// Include the downloaded script file
import { ScrollHints } from './scroll-hints-react';
function MyComponent() {
return (
<ScrollHints>
{/* scrollable content goes here */}
</ScrollHints>
)
}
Angular
my-module.ts// Include the downloaded script file
import './scroll-hints.js';
@NgModule({
// ...
schemas: [
// Include this schema to enable custom web components
CUSTOM_ELEMENTS_SCHEMA
]
})
export class MyModule { }
my-component.html
<scroll-hints>
<!-- scrollable content goes here -->
</scroll-hints>
Vue
MyComponent.vue<script setup lang="ts">
// Include the downloaded script file
import './scroll-hints.js';
</script>
<template>
<scroll-hints>
<!-- scrollable content goes here -->
</scroll-hints>
</template>
Configure
Content
<!--
You can customize the scroll hint HTML
by placing content in the hint slots
-->
<scroll-hints>
<!-- scrollable content goes here -->
<!-- Overrides the scroll hint on the left -->
<div class="my-scroll-hint" slot="left-hint"></div>
<!-- Overrides the scroll hint on the right -->
<div class="my-scroll-hint" slot="right-hint"></div>
<!-- Overrides the scroll hint on the top -->
<div class="my-scroll-hint" slot="top-hint"></div>
<!-- Overrides the scroll hint on the bottom -->
<div class="my-scroll-hint" slot="bottom-hint"></div>
</scroll-hints>
Style
/**
* To customize the styles you can set these CSS custom properties
*/
scroll-hints {
--scroll-hint-color: white; /* default: rbga(0, 0, 0, 0.1); */
--scroll-hint-size: 16px; /* default: 24px */
--scroll-hint-size-x: 24px; /* default: var(--scroll-hint-size) */
--scroll-hint-size-y: 12px; /* default: var(--scroll-hint-size) */
--scroll-hint-inset: 8px; /* default: 0 */
--scroll-hint-inset-top: 12px; /* default: var(--scroll-hint-inset) */
--scroll-hint-inset-right: 12px; /* default: var(--scroll-hint-inset) */
--scroll-hint-inset-left: 12px; /* default: var(--scroll-hint-inset) */
--scroll-hint-inset-bottom: 12px; /* default: var(--scroll-hint-inset) */
}
Have Questions for Feedback?
Please leave a comment in the comment section and I will get back to you as soon as possible!
Happy coding!
| Type | JavaScript Script |
|---|---|
| Author | lan-chan |
| Category | Javascript / Navigation |
| Price | $16 |
| Sales | 2 |
| Published | Feb 9, 2023 |
| Last Update | Feb 14, 2023 |
| Compatible Browsers | IE11, Firefox, Safari, Opera, Chrome, Edge |
| Source Files Included | JavaScript JS |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 5,863 views · 52 clicksSaaS · Week 46 · 5,863 views · 52 clicks
🥈
Conversational Backlinks for Busy Founders
Place Backlink Relevant Conversation for your domain across Forums and Conversations
Website · 44,330 views · 227 clicksWebsite · Week 46 · 44,330 views · 227 clicks
🥉
upvote.club
Free Social Media Engagement that Helps Boost Your Content. Upvote Club supports 19 social networks with 100+ engagement actions in one dashboard. Add links to your posts and get free engagement from real users.
SaaS · 42,347 views · 123 clicksSaaS · Week 46 · 42,347 views · 123 clicks
#4
Substack Posting API
Onboard your Agent to Substack. Write Publish on Substack via API
SaaS · 61,302 views · 203 clicksSaaS · Week 46 · 61,302 views · 203 clicks
#5
Seenshot App
Free, Fast, MacOS Screenshot app. Make Screenshot cmd+shift+2 and send it via link
Desktop App · 30,593 views · 124 clicksDesktop App · Week 46 · 30,593 views · 124 clicks
#6
Hand-Placed Backlinks $9.99 per link. Flat rate.
Buy hand-placed forum, Q-A and directory backlinks. Flat $9.99 per link, no subscriptions — you only pay for approved listings.
Website · 6,313 views · 19 clicksWebsite · Week 46 · 6,313 views · 19 clicks
#7
Free Invoice Generator - PDF Invoices in Your Browser, No Sign-Up
A free invoice maker for freelancers and small businesses: fill in the invoice, check the live preview, and download a PDF that looks exactly like it. Any currency, tax per item, three templates, no sign-up, and nothing leaves your device.
4,974 views · 19 clicksWeek 46 · 4,974 views · 19 clicks
#8
Merge PDF Files Free - Combine PDFs in Your Browser, No Upload
A free PDF merger for office workers, students, and freelancers: combine PDFs and images into one file in the browser, reorder files and pages, pick page ranges, keep bookmarks, and open password-protected PDFs. Nothing is uploaded, no sign-up, no watermark.
4,591 views · 15 clicksWeek 46 · 4,591 views · 15 clicks