Skip to content

STR1234/Slidy

 
 

Repository files navigation

npm version npm bundle size npm downloads github issues npm license

@Slidy

Simple, configurable, nested & reusable sliding action script with templates, animations, easings & plugins.

Сompletely mimics the behavior of a native scroll with mouse drag, index navigation, acceleration, gravity & infinite loop mode.

<script>
    import { slidy } from '@slidy/core'
    import { flip } from '@slidy/animation'

    slidy(node, { snap: 'deck', animation: flip })
</script>

<div id="node">
    <img />
    ...
</div>

Try the DEMO

👨🏻‍💻 in progress...

📝 todo...

NPM organization @slidy

Development

  • esbuild - bundling & packaging
  • pnpm workspaces - monorepo
  • tsc - types declaration
  • derver - dev server

Thanks 🎉

@ariya for kinetic - examples & explanations of scroll kinetic principles
@argyleink for open-props - Open Source CSS Variables
@evanw for esbuild - an extremely fast JS bundler
Unsplash for light dataset - Unsplash images made available for research and machine learning by this terms
@AlexxNB for derver - simple but powerfull dev/prod nodejs server
@PaulMaly for idea of simplifing reactive updates of options object
@rodshtein for the idea of implementing the action function
@EricRovell for collaboration, ideas of modulating @Slidy & SvelteJS root template
@ArtemiySchukin for collaboration & SolidJS & RactJS implementations

MIT © Valexr

About

📸 Sliding action script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 44.3%
  • CSS 16.9%
  • Svelte 13.0%
  • JavaScript 12.6%
  • HTML 11.5%
  • Vue 1.7%