-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom fullscreen button shapes #17
Comments
@desandro - Have tried to implement this as per the above instructions, however I am getting a console error which is breaking the slider. My code is below, and as you can see I've included the above code before initialisation. Any idea how to resolve?
|
@kaleidografik Sorry about that. I've updated the top comment with correct code, instructions, and CodePen demo |
Excellent, thanks @desandro - would love to see this added to core in future. |
You may want to set your own custom icon shape for the fullscreen buttons, similar to how you can with
arrowShape
.Add a π reaction to this issue if you would like to see this feature added. Do not add +1 comments β They will be deleted.
I would implement this feature by add two new options:
viewFullscreenButtonShape
andexitFullscreenButtonShape
.Here's a duck-punch to implement custom buttons in your code. You can copy/paste this code before you initialize Flickity to use these options.
You'll need to
pathDirections.view
and.exit
to an SVG path, with a viewbox of 32 x 32. See demo on CodePen: https://codepen.io/desandro/pen/ZVpVYK?editors=0010The text was updated successfully, but these errors were encountered: