Giter VIP home page Giter VIP logo

elementor-flickity-slider's Introduction

Flickity Slider for Elementor

Author: James Dunn Site: http://jamesdunnfreelance.co.uk

This slider has a heading (named title), an Image which is a background image, a WYSIWYG editor for the text blurb and a section for 1 button.

Implemented slider settings are:

  • Draggable
  • Free Scroll
  • Wrap Around
  • Group Cells - with number only (no percentage)
  • Auto Play - with milliseconds option
  • Pause Auto Play On Hover
  • Adaptive Height
  • Watch CSS
  • Drag Threshold
  • Selected Attraction
  • Friction
  • Cell Selector
  • Initial Index - number only
  • Accessibility
  • Set Gallery Size
  • Resize
  • Cell Align
  • Contain
  • Percent Position
  • Right To Left
  • Prev Next Buttons
  • Page Dots
  • Arrow Shape

If you need to amend the slider (perhaps you have slightly different requirements for your slider), you can edit the rendered part by going to widgets/class-flickity-slider.php and updating the render function. To add other controls, update the function _register_controls. The content_template function is for the internal side of elementor (the editor) which is why it's similar to the render function. You may need to update that side to reflect the changes in the front end. Be aware that if you use the <# #> notation, it is based on Underscore JS (https://underscorejs.org/), alternatively you can just use php instead.

There is a css file and a javascript file in the assets folder if you need further modifications.

Demos

See here for demos: https://jamesdunnfreelance.co.uk/elementor-flickity-slider-widget/

Installation

Copy the elementor-flickity-slider folder into your WordPress plugins directory and click "Activate" within the WP-Admin.

Warning

As this is for elementor, be aware that elementor containers may crop the image and you'll have to adjust those.

For now this needs to have allow_url_open set in the PHP INI settings so that wp_getimagesize() can be used.

elementor-flickity-slider's People

Contributors

namcos avatar

Watchers

 avatar

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.