Comments (2)
getDecoratorStyles() is only used for the parent div. You can use any style you want in your decorators.
It does seem like a somewhat odd design though.
from nuka-carousel.
All this privatizing of code is an illusion of power, there is always a way around it:
class MyNukaCarousel extends NukaCarousel {
constructor(props) {
super(props);
this.getDecoratorStyles = function(position) {
//put whatever position styles you want here
return {
position: 'absolute',
top: 0,
left: 0
};
};
}
}
Not pretty, but like , it gets the job done. Ideally there would be a better way, or just fork, extend, repeat.
from nuka-carousel.
Related Issues (20)
- WrapAround makes the carousel non-responsive to screen sizes HOT 1
- react18
- Carousel slide transition bouncing while swiping when animation is set to zoom in iOS
- Hiding Next and Previous buttons when First or Last items are active HOT 2
- Are imperative api's such as `slideNext` and `slidePrev` available outside `Carousel` component? HOT 3
- Reset autoplay timer in onDragEnd?
- Can we achieve a crossfade effect between slides when animation="fade"? HOT 1
- add something like vertical mode feature to show items vertically?
- Better infinite scrolling behavior in a controlled carousel?
- Carousel does not work with varying width slides HOT 1
- Module not found: Can't resolve 'nuka-carousel' HOT 1
- Dynamically setting disabled state results in keyboard focus getting lost
- Test accessibility with jest-axe
- Direction of Carousel Sliding HOT 1
- [8.0.0] RangeError: invalid array length HOT 1
- totalPages does not work with image inside a div HOT 1
- Broken Documentation site (https://commerce.nearform.com/open-source/nuka-carousel) HOT 2
- Prop for animation speed HOT 2
- Map render a unique slide in the carousel
- Mobile (tested on IOS) Touch event captured and Slide direction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuka-carousel.