Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -css-
- .react-slideshow-wrapper.slide {
- width: 100%;
- overflow: hidden;
- }
- -JavaScpript-
- _createClass(Slideshow, [{
- key: 'componentDidMount',
- value: function componentDidMount() {
- this.allImages = document.querySelectorAll('.images-wrap div');
- this.width = document.querySelector('.react-slideshow-wrapper').clientWidth;
- console.log(document.querySelector('.react-slideshow-wrapper'))
- console.log(this.width)
- //returned value 0
- this.setWidth();
- window.addEventListener('resize', this.resizeListener);
- }
- }
Add Comment
Please, Sign In to add comment