Giter VIP home page Giter VIP logo

scroll-carousel's Introduction

Hi πŸ‘‹, I'm Asif Jalil


  • πŸ”­ I’m currently working at Technext Limited
  • ⭐ All info & Project In one place My Portfolio
  • 🌱 I’m currently learning everything i need

Connect with me

LinkedIn Connect Facebook Follow Medium Follow Questions


Technology Stack:

javascript typescript react js next js nodejs express nest js mysql webpack



Top Langs

Asif's GitHub stats

Buy Me A Coffee

scroll-carousel's People

Contributors

asif-jalil avatar md-emran-hossain avatar mostofanobi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

scroll-carousel's Issues

Webpack build system

  • Webpack build for plugin bundle
  • Import form bundle file is not working (fix)
  • Webpack build for docs

Add a Next and Previous options

It would have been nice if there were an option/method to allow an easy way to see the next or previous item while you're not scrolling by adding buttons, and maybe another feature that can swipe the carousel by clicking and dragging the mouse.

NextJs issue while trying to import ScrollCarousel

Whenever I am trying to import ScrollCarousel from scroll-carousel my NextJs app gets crashed and throws some error.

Error -

Server Error
ReferenceError: document is not defined

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
docReady
file:///Users/mahadihassanriyadh/Documents/Coding/Web%20Development/Sysonex/sysonex-landing-page/node_modules/scroll-carousel/dist/scroll.carousel.js (236:20)
htmlInit
file:///Users/mahadihassanriyadh/Documents/Coding/Web%20Development/Sysonex/sysonex-landing-page/node_modules/scroll-carousel/dist/scroll.carousel.js (258:3)
<unknown>
file:///Users/mahadihassanriyadh/Documents/Coding/Web%20Development/Sysonex/sysonex-landing-page/node_modules/scroll-carousel/dist/scroll.carousel.js (699:48)
<unknown>
file:///Users/mahadihassanriyadh/Documents/Coding/Web%20Development/Sysonex/sysonex-landing-page/node_modules/scroll-carousel/dist/scroll.carousel.js (701:2)
<unknown>
file:///Users/mahadihassanriyadh/Documents/Coding/Web%20Development/Sysonex/sysonex-landing-page/node_modules/scroll-carousel/dist/scroll.carousel.js (704:12)
webpackUniversalModuleDefinition
file:///Users/mahadihassanriyadh/Documents/Coding/Web%20Development/Sysonex/sysonex-landing-page/node_modules/scroll-carousel/dist/scroll.carousel.js (11:20)
Object.<anonymous>
file:///Users/mahadihassanriyadh/Documents/Coding/Web%20Development/Sysonex/sysonex-landing-page/node_modules/scroll-carousel/dist/scroll.carousel.js (18:3)
Module._compile
node:internal/modules/cjs/loader (1126:14)
Object.Module._extensions..js
node:internal/modules/cjs/loader (1180:10)
Module.load
node:internal/modules/cjs/loader (1004:32)

How to use scroll carousel on Gatsby?

	useEffect(() => {
		if (typeof window !== "undefined") {
			const initializationTimeout = setTimeout(() => {
				new ScrollCarousel(".carousel", {
					autoplay: true,
					smartSpeed: true,
					margin: 0,
				});
			}, 100);

			return () => {
				clearTimeout(initializationTimeout);
			};
		}
	}, []);

The above initialization works on development but I'm struggling with "document" is not available during server-side rendering. on gatsby build.

I'm hoping someone may point me in the right direction.

Horizontal scrollbar

Description
When the carousel is placed in flexbox and the flex-direction: column; is set, a horizontal scrollbar appearsβ€”attached is a picture for a greater understanding.

I am giving the sample code to reproduce the issue. I am using class using bootstrap.

<div class="d-flex flex-column">
    <div>Something is happening</div>
    <div class="scroll-carousel-viewport">
        <div class="scroll-carousel-slider">
            ....................
        </div>
    </div>
</div>

issue

option > margin

There should be option for a margin between two slides. A default margin must be set

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.