Coder Social home page Coder Social logo

cuberto / reeller Goto Github PK

View Code? Open in Web Editor NEW
78.0 78.0 3.0 166 KB

Flexible, powerful and modern library for creating the running horizontal blocks effect, also known as ticker or the «marquee effect».

License: MIT License

JavaScript 99.63% Shell 0.37%

reeller's People

Contributors

drafteed 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

reeller's Issues

Options don't work as expected?

My expectations with the following options set are:

  • The marquee will not be moving when the page loads (paused: true)
  • If I make the .reel container big enough to fit everything, it will not create any clones and no need to run the marquee (clonesMin:0 and clonesOverflow: false)
  • When the animation does run via .resume(), it will run backwards (reversed: true)
  • If I made the container a relative width, I could expand the window and the animation would stop if everything fits (autoStop: true)

None of these things work as expected. As soon as the page loads, it just starts scrolling the marquee, no matter what I change in the options. Am I fundamentally missing something or misunderstanding all the options? Because this library animates really nicely and would seem to fit my needs better than anything else I've found, if I could just get it to work as I'm expecting...

const reeller = new Reeller({
      container: '.reel',
      wrapper: '.reel-wrapper',
      itemSelector: '.reel-item',
      clonesMin: 0,
      clonesOverflow: false,
      paused: true,
      reversed: true,
      autoStop: true
    })
    <div class="reel w-96 rounded border">
      <div class="reel-wrapper flex text-sm uppercase">
        <div class="reel-item mx-2 flex-none">Lorem</div>
        <div class="reel-item mx-2 flex-none">ipsum</div>
        <div class="reel-item mx-2 flex-none">dolor</div>
        <div class="reel-item mx-2 flex-none">sit</div>
        <div class="reel-item mx-2 flex-none">amet</div>
        <div class="reel-item mx-2 flex-none">consectetur</div>
        <div class="reel-item mx-2 flex-none">adipisicing</div>
        <div class="reel-item mx-2 flex-none">elit</div>
      </div>
    </div>

Issue with using the plugin -

Hi, ive followed the instructions to implement, to the T.

I get this message

Uncaught TypeError: Cannot read properties of undefined (reading 'cloneNode')
    at Filler.addClones (index.module.js:183:61)
    at Filler.setClonesCount (index.module.js:216:40)
    at Filler.update (index.module.js:263:10)
    at ResizeObserver.eval (index.module.js:161:14)

My code is quite simple, im calling the function from my app.js. The reeller.js file i have only contains this


import Reeller from 'reeller';
import gsap from 'gsap';


Reeller.registerGSAP(gsap);

export default function cubertoReeller(){

    const reeller = new Reeller({
        container: '.my-reel',
        wrapper: '.my-reel-wrap',
        itemSelector: '.my-reel-item',
        speed: 10,
    });
}

Would appreciate any help you can provide!

Thanks in advance

Vertical Reeller

Hey there,

Any clue about achieving a vertical direction instead of horizontal?

If it isn´t possible, do you plan to add this possiblity?

Thanks a lot.

Cant change speed

The speed option doesnt seem to do anything

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.4/gsap.min.js"></script>
<script src="https://unpkg.com/reeller@0/dist/reeller.min.js"></script>
<script src="./js/index.js" type="module"></script>
const reller = new Reeller.Reeller({ 
   container: '#reel',
    wrapper: '#reel-wrap',
    itemSelector: '#reel-item',
    speed: 10,
});

Pause on hover and exclusively attach to scroll

Hey there,

I was playing with your library to implement it in my sites and wanted to achieve a pause on hover. Already tried your methods and properties and can´t get this functional.
Apart from that, I also wanted to achieve a paused marquee that only moves when scrolling (no loop movement once the scroll is produced). I also couldn´t achieve that using your docs params.

I would be very grateful if you could provide a small code with these features. If they aren´t achievable with reeller please tell me. This was a headache for me.
Keep the awesome work.

Reeller is not a constructor (using CDN)

Hello,

I try to make Reeller to work using CDN, have gsap loaded etc....

Whatever I try, I always have the same error : "Reeller is not a constructor"

Best regards,

Alex

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.