question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autoplay not working

See original GitHub issue

I am not able to get autoplay to work in any browser

var Slider = require('react-slick').default;
var slider1 = require('../img/FMF2018_New_Slider_Dec.jpg')
var slider2 = require('../img/Hallow.jpg')

class Carousel extends React.Component {
    render () {
    var settings = {
      dots: true,
      infinite: true,
      arrows: false,
      speed: 500,
      slidesToShow: 1,
      slidesToScroll: 1,
      swipeToSlide: true,
      autoPlay: true,
      autoplaySpeed: 1000
    };
    return (
      <Slider className='sliderTest' {...settings}>
        <div><img src={slider1} className='img-responsive' height="500"  alt='test'/></div>
        <div><img src={slider2} className='img-responsive' height="500"  alt='test'/></div>
        <div><img src={slider1} className='img-responsive' height="500"  alt='test'/></div>
        <div><img src={slider2} className='img-responsive' height="500"  alt='test'/></div>
        
      </Slider>
    );
  }
}
export default Carousel

"dependencies": {
    "axios": "^0.16.2",
    "jquery": "^3.2.1",
    "prop-types": "^15.6.0",
    "react": "^15.6.2",
    "react-dom": "^15.6.2",
    "react-scripts": "1.0.12",
    "react-slick": "^0.16.0",
    "react-tweet-embed": "^1.0.8",
    "react-twitter-embedded-timeline": "^0.4.0",
    "xml2js": "^0.4.19"
  },

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13

github_iconTop GitHub Comments

20reactions
Wgilcommented, Jan 12, 2018

The property is called autoplay in lowercase, does it solve your problem?

7reactions
antoniojpscommented, Feb 20, 2020

@arhoy just set the prop pauseOnHover to false. https://react-slick.neostack.com/docs/api#pauseOnHover

Read more comments on GitHub >

github_iconTop Results From Across the Web

Autoplay not working in Windows 10/11 [COMPLETE GUIDE]
How can I fix Autoplay if it isn't working in Windows 10? · 1) Reset the Autoplay settings · 2) Check Registry Editor...
Read more >
How to Fix Windows 10 AutoPlay Not Working? – 6 Methods
Sometimes, Windows 10 AutoPlay may not work. How to fix windows 10 autoplay not working issue? This video offers 6 methods. Method 1....
Read more >
AutoPlay not working in Windows 11/10
It's very easy to disable AutoPlay in Windows 11. Go to Settings > Bluetooth & devices > AutoPlay. Disable the toggle that says...
Read more >
6 Fixes When the AutoPlay Isn't Working on Windows 11
1. Turn Off and On AutoPlay in the Settings · Press Win + I to open Settings. · Open the Bluetooth & devices...
Read more >
Windows 10 Autoplay not working - Microsoft Community
Windows 10 Autoplay not working · Click the Start button Image , click All Programs, click Accessories, right-click Command Prompt, and then ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found