• Stars
    star
    4,918
  • Rank 8,538 (Top 0.2 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created over 13 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An awesome, fully responsive jQuery slider plugin

Gitter chat

FlexSlider 2.7.2

http://www.woocommerce.com/flexslider/ - Copyright (c) 2015 WooThemes

Releases

The master branch of this repository is always the latest development version of FlexSlider. Please view the Releases section for a list of official FlexSlider builds.

Contributing

We encourage contributions to FlexSlider and will review all pull requests submitted.

Before contributing, please see our Contributing Guide.

Roadmap

To keep up to date with how FlexSlider's development roadmap looks, please see our development roadmap.

Updates

** Version 2.7.2 **

** Refactor jQuery HTML output for img attributes.

** Version 2.7.1 **

** RTL fixes for Firefox browser.

** Version 2.7.0 **

** Fixes resize method call for orientationchange. Adds RTL feature - param "rtl" added. **

** Version 2.6.3 **

** Rollback fade fixes, due to harsh fade reports. **

** Version 2.6.2 **

** Minor update to fix issues with varying heights and overflow onto content below the slider. Fixes the visibility of the pagination and the navigation in the "fade" mode. **

** Version 2.6.1 **

** SmoothHeight now uses innerHeight() instead of height() to account for padding in calculation. Defining var altText to prevent error. bower.json add fonts folder on main field. Changed true to false in order to make sure whether or not to allow a slider comprised of a single slide. **

** Version 2.6.0 **

** Adds composer json file, scope fix for focused keyword, fixes bower demo folder exclusion, z-index fix for disabled nav arrow, play/pause accessibility fix, itemMargin fix for slider items, fixes accessibility for in focus elements and pagination controls, firefox fix for text selection on slider carousel, adds data-thumb-alt image alt attribute. **

** Version 2.5.0 **

** Bumped compatibility support starting with jQuery 1.7+. pausePlay icon fix. Firefox touch event fix. Adds customDirectionNav param. **

** Version 2.4.0 **

** Update for improved standards. Adds classes to li nav elements. Reset for li elements in stylesheet. **

** Version 2.3.0 **

** Fixes pauseInvisible attribute issue with Chrome and the Page Visibility API. **

** Version 2.2.2 **

** Fixes minified JavaScript file to remove merge conflicts. **

** Version 2.2.0 **

  • Fixed event handler conflicts with devices that are both click and touch enabled. e.g., Windows 8.
  • Made all slider variables public, stored in slider.vars. This allows manipulation of slider.vars.minItems and slider.vars.maxItems on the fly to create different fluid grids at certain breakpoints. Check out this example demonstrating a basic technique
  • Fixed calculations that were causing strange issues with paging and certain FlexSliders to move out of alignment.

Be sure to test v2.2.0 with your current slider, before pushing live, to ensure everything is playing nicely.


General Notes

FlexSlider is no longer licensed under the MIT license. FlexSlider now uses the license, GPLv2 and later.

In an effort to move the plugin forward, support for jQuery 1.4.2 has been dropped. The plugin now requires jQuery 1.7.0+. If you don't have access to the later versions of jQuery, FlexSlider 1.8 should be a perfectly suitable substitute for your needs!

Your old styles and properties might not work out of the box. Some property names have been changed, noted below, as well as namespacing prefixes being applied to all elements. This means that .flex-direction-nav .next is now .flex-direction-nav .flex-next by default. The namespacing property is exposed, free for you to change.

No more overflow hidden woes! The plugin now generates a viewport element to handle the tedious task of working around overflow hidden. Yay!

The slider element is now accessible outside of the callback API via the jQuery .data() method. Example use: $('#slider').data('flexslider')

Helper strings have been added for performing actions quickly on FlexSlider elements. Example uses:

  • $('#slider').flexslider("play") //Play slideshow
  • $('#slider').flexslider("pause") //Pause slideshow
  • $('#slider').flexslider("stop") //Stop slideshow
  • $('#slider').flexslider("next") //Go to next slide
  • $('#slider').flexslider("prev") //Go to previous slide
  • $('#slider').flexslider(3) //Go fourth slide

Two new methods are available for adding/removing slides, slider.addSlide() and slider.removeSlide(). More details about this coming soon.

  • slider.addSlide(obj, pos) accepts two parameters, a string/jQuery object and an index.
  • slider.removeSlide(obj) accepts one parameter, either an object to be removed, or an index.

Examples

RTL Examples

Properties

namespace: {new}

namespace controls the prefixes attached to elements created by the plugin. In previous releases, only certain elements were tagged with a prefix class, which was causing class generalization issues for some users. FlexSlider now prefixes all generated elements with the appropriate namespace.

Hint: namespace can be an empty string.

selector: {new}

The markup structure for FlexSlider has been limited to a "ul.slide li" pattern in previous versions of FlexSlider; no longer. You can now take full control of the markup structure used for your FlexSlider. The selector pattern "{container} > {slide}" is mandatory, allowing the plugin to predictably interpret the selector property. Omitting the ">" from the selector is not suggested, but is possible if your markup doesn't follow the immediate descendant pattern.

Examples: "section > article", ".slides > .slide", "#hero .slide"

easing: {new}

easing allows support for jQuery easing! Default options provided by jQuery are "swing" and "linear," but more can be used by included the jQuery Easing plugin. If you chose a non-existent easing method, the slider will break.

Note: You need to set useCSS: false to force transitions in browsers that support translate3d. Optional: jQuery Easing Plugin

direction: {changed}

Previously called "slideDirection" in v1.8 and below.

reverse: {new}

reverse will reverse the animation direction of the slider. Meaning, horizontal sliders can move from right to left, and vertical sliders can move bottom to top.

smoothHeight: {new}

smoothHeight allows for smooth height transitions between slides. This property currently works for the fade and horizontal slide animation. The property has no effect on horizontal sliding carousels, however.

startAt: {changed}

Previously called "slideToStart" in v1.8 and below.

animationSpeed: {changed}

Previously called "animationDuration" in v1.8 and below.

initDelay: {new}

initDelay will delay the initial slideshow of a slider, given in milliseconds. The slider will still initialize, generating controls and displaying the first image, but the slideshow will wait until the initDelay time has completed before starting the slideshow.

useCSS: {new}

useCSS allow users to override using CSS3 for animation. Translate3d still has numerous bugs that can crop up and wreak havoc, so this is a great property to play with if you are experiencing unexplainable issues in Webkit browsers.

Hint: Use conditionals to enable/disable the use of CSS3 on desktops and mobile devices. Mobile devices, in my experience, do not share many of the translate3d bugs seen on desktop browsers.

touch: {new}

touch allows users to exclude touch swipe functionality from their sliders.

keyboard: {changed}

Previously called "keyboardNav" in v1.8 and below.

multipleKeyboard {new}

multipleKeyboard allows users to override the default plugin keyboard behavior, enabling keyboard control of more than one slider on the page. This means that all visible sliders will animate, at the same time, via keyboard input.

Hint: You can use multipleKeyboard to allow keyboard navigation on pages where multiple sliders are present, but only one is visible.

mousewheel: {updated}

mousewheel now requires the jQuery Mousewheel plugin. There are a few reasons for this, but primarily because there is no need for FlexSlider itself to reinvent the awkward complexity of mousewheel interactivity that is handled perfectly by the Mousewheel plugin.

Required: jQuery Mousewheel Plugin

controlsContainer: {updated}

controlsContainer is one of the more painstaking, potentially confusing properties within FlexSlider. First, the property is no longer required to workaround overflow: hidden on slide animation. Second, the property now accepts a jQuery object, giving you precise control over the object you want. The plugin no longer attempts to guess what element you are selecting.

customDirectionNav: {new}

customDirectionNav allows the ability to add custom directional navigation elements. Can be used in conjunction with controlsContainer for pagination controls container.

Example of customDirectionNav being used

sync: {new}

sync is a new property that will allow other slider(s) to hook into the current slider via a given selector. The selector should describe an object that has already been initialized as a FlexSlider. Right now, sync will synchronize animation, play, and pause behaviors. More behaviors can be added in the future as the property matures.

Example of sync being used

asNavFor: {new}

Description to be added.

itemWidth: {new}

itemWidth is the primary property for the new carousel options. Without this property, your slider is not considered a carousel. To use itemWidth, give an integer value of the width of your individual slides. This should include borders and paddings applied to your slides; a total width measurement.

itemMargin: {new}

itemMargin describes the gutter between the slide elements. If each slide has a margin-left of 10px, your itemMargin value would be 10. If elements have margin: 0 10px, your itemMargin would be 20.

minItems: {new}

minItems describes the minimum number of slide elements that should be visible in the carousel. When the slider reaches the minimum item count, the slides will resize fluidly with the slider.

maxItems: {new}

maxItems describes the maximum number of slide elements that should be visible in the carousel. When the slider reaches the maximum item count, the slides will resize fluidly with the sider.

move: {new}

move determines how many slides should be animated within the carousel. When left at 0, the slider will animate the number of visible slides. If any value greater than 0 is given, the slider will animate that number of slides in the carousel on each animation interval.

Hint: The move property will be ignored if the value is higher than the number of visible slides, which can be utilized in responsive design.

added: {new}

added() is a new callback event fired in the new slider.addSlide() function.

removed: {new}

removed() is a new callback event fired in the new slider.removeSlide() function.

allowOneSlide: {new}

Boolean. Whether or not you'd like FlexSlider to initialize as usual if only one slide is present.

rtl: {new}

Boolean. False by default. Supports RTL functionality in the slider. Note: you must add style="direction:rtl" to your container div in order for this to work.

isFirefox: {new}

Boolean. False by default. Set to true if the Firefox browser is in use. Note: used for RTL compatibility logic.

More Repositories

1

woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
PHP
9,371
star
2

storefront

Official theme for WooCommerce
PHP
939
star
3

action-scheduler

A scalable, traceable job queue for background processing large queues of tasks in WordPress. Specifically designed for distribution in WordPress plugins (and themes) - no server access required.
PHP
631
star
4

wc-api-php

WooCommerce REST API PHP Library
PHP
521
star
5

woocommerce-blocks

(Deprecated) This plugin has been merged into woocommerce/woocommerce
TypeScript
404
star
6

woocommerce-admin

(Deprecated) This plugin has been merged to woocommerce/woocommerce
PHP
361
star
7

theme-customisations

PHP
313
star
8

wc-smooth-generator

Smooth product, customer and order generation for WooCommerce
PHP
311
star
9

woocommerce-ios

WooCommerce iOS app
Swift
301
star
10

woocommerce-rest-api-js-lib

New JavaScript library for WooCommerce REST API
JavaScript
285
star
11

woocommerce-android

WooCommerce Android app
Kotlin
277
star
12

woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
PHP
234
star
13

wc-api-python

A Python wrapper for the WooCommerce API.
Python
211
star
14

facebook-for-woocommerce

A first-party extension plugin built for WooCommerce. Development is managed by Ventures.
PHP
211
star
15

woocommerce-product-tables-feature-plugin

Implements new data-stores and moves product data into custom tables, with a new, normalised data structure.
PHP
192
star
16

woocommerce-google-analytics-integration

WordPress plugin: Provides the integration between WooCommerce and Google Analytics.
PHP
152
star
17

wc-api-node

This client is obsolete and will no longer receive updates, a new JavaScript library is available under the name of @woocommerce/woocommerce-rest-api
JavaScript
144
star
18

woocommerce-subscriptions-importer-exporter

Import your subscribers to WooCommerce from a CSV. Or export your subscription data from WooCommerce to CSV.
PHP
138
star
19

woocommerce-rest-api-docs

WooCommerce REST API Documentation
JavaScript
130
star
20

woocommerce-accommodation-bookings

An accommodations add-on for the WooCommerce Bookings extension.
PHP
91
star
21

woocommerce-language-packs

This repo is deprecated - translation should be done on https://translate.wordpress.org/projects/wp-plugins/woocommerce/
JavaScript
83
star
22

woocommerce-rest-api

This is the WooCommerce core REST API Package. It runs standalone as a feature plugin too.
PHP
70
star
23

wc-api-ruby

A Ruby wrapper for the WooCommerce API.
Ruby
69
star
24

woocommerce-gateway-dummy

A Dummy Payments gateway for your WooCommerce website.
PHP
66
star
25

woocommerce-paypal-payments

PHP
62
star
26

woocommerce-subscriptions-custom-price-string

Customize the price displayed to your customers for subscription products (or non-subscription product).
PHP
61
star
27

woocommerce-gateway-paypal-express-checkout

PHP
59
star
28

testimonials

Hi, I'm your testimonials management plugin for WordPress. Show off what your customers or website users are saying about your business and how great they say you are, using our shortcode, widget or template tag.
PHP
59
star
29

action-scheduler-high-volume

Increase Action Scheduler time limit, queue size and concurrency to process large queues of actions more quickly on high volume websites with more server resources.
PHP
56
star
30

features

Hi, I'm your feature showcase plugin for WordPress. Show off what features your company, product or service offers using our shortcode, widget or template tag.
PHP
53
star
31

woosidebars

Replace registered sidebars in your WordPress themes using different conditions such as a specific page, a category or even an individual blog post.
PHP
50
star
32

action-scheduler-disable-default-runner

Disable Action Scheduler's default queue runner, by removing it from the 'action_scheduler_run_queue' hook.
PHP
49
star
33

woocommerce-sniffs

Collection of PHP_CodeSniffer sniffs for WooCommerce
PHP
48
star
34

google-listings-and-ads

Sync your store with Google to list products for free, run paid ads, and track performance straight from your store dashboard.
PHP
47
star
35

houston

A child theme for the popular P2 WordPress theme, used on WooThemes internal P2 properties.
CSS
47
star
36

wc-api-dev

This is a repository is obsolete, WooCommerce REST API is now located in https://github.com/woocommerce/woocommerce-rest-api
PHP
44
star
37

woocommerce-gateway-payfast

South African payment gateway supporting subscriptions, deposits & pre-orders
PHP
41
star
38

projects

PHP
40
star
39

grant-download-permissions-for-past-woocommerce-orders

This plugin grants downloads permissions like WooCommerce 2.6.x, granting permissions for new files added to a downloadable product. Note that this plugin performs heavy database queries and does not scale. For this reason it has been removed from WooCommerce core.
PHP
39
star
40

woocommerce-subscriptions-cancel-subscription-confirmation

Require your subscribers to confirm just-one-more-time before cancelling their subscription.
PHP
37
star
41

our-team

Hi, I'm your team profile management plugin for WordPress. Show off what your team members using our shortcode, widget or template tag.
PHP
35
star
42

automatewoo-subscriptions

⚠️ DO NOT USE - AutomateWoo's Subscription add-on was merged into AutomateWoo 5.4. Advanced actions for automating a subscription's lifecycle with AutomateWoo.
PHP
34
star
43

woocommerce-subscriptions-preserve-billing-schedule

By default, WooCommerce Subscriptions will calculate the next payment date for a subscription from the time of the last payment. This plugin changes that to preserve the original schedule and calculate the next payment date from the scheduled payment date, not the time the payment was actually processed.
PHP
34
star
44

bookings-helper

This extension is a WooCommerce Bookings helper which helps you to troubleshoot bookings setup easier by allowing you to quickly export/import product settings.
PHP
32
star
45

storechild

Child theme starter for Storefront
PHP
32
star
46

woocommerce-icons

HTML
32
star
47

sensei-certificates

Hi, I'm the Certificates extension for Sensei.
PHP
31
star
48

woocommerce-beta-tester

Run the beta versions of WooCommerce
PHP
29
star
49

woocommerce-subscriptions-resource

A library to track and prorate payments for a subscription using WooCommerce Subscriptions based on the status of an external resource.
PHP
26
star
50

woocommerce-custom-indexes

PHP
23
star
51

pinterest-for-woocommerce

A native Pinterest integration for WooCommerce. Development is managed by Ventures.
PHP
22
star
52

woocommerce-subscriptions-skip-pending-cancel

Subscriptions will skip Pending Cancellation and go directly to Cancelled status when Customer cancels their subscription.
PHP
21
star
53

woocommerce-gateway-amazon-pay

Amazon Pay Gateway
PHP
20
star
54

qit-cli

A Testing Platform for WordPress Plugins and Themes
PHP
19
star
55

homepage-control

Re-order or disable the components of your homepage in our newer WordPress themes.
PHP
19
star
56

woocommerce-colors

PHP
19
star
57

woocommerce-e2e-boilerplate

JavaScript
18
star
58

boutique

CSS
17
star
59

woocommerce-product-bundles-bulk-discounts

Bulk discounts and dynamic pricing rules for WooCommerce Product Bundles.
PHP
16
star
60

sensei-content-drip

A content drip extension for Sensei.
PHP
16
star
61

code-reference

WooCommerce Code Reference Generator
Twig
16
star
62

sensei-course-progress

A course progress widget for Sensei.
PHP
16
star
63

woocommerce-subscriptions-cancel-on-refund

Cancel a subscription when the most recent order is fully refunded. Both refunds on a parent or renewal order will trigger cancellation, as long as it is the most recent order.
PHP
16
star
64

action-scheduler-custom-tables

This plugin is no longer needed. The custom table code is now part of Action Scheduler version 3.0 and newer. If you're using the latest Action Scheduler, you have the most performant schema available.
PHP
14
star
65

action-scheduler-timeout-monitor

Gather additional information about scheduled actions which timeout.
PHP
14
star
66

subscribe-for-content

A WordPress plugin that allows you to hide content until a user subscribes to your MailChimp mailing list 😍
PHP
13
star
67

automations

Various GitHub Action automations to assist with repository project management.
JavaScript
13
star
68

storefront-product-sharing

PHP
13
star
69

woocommerce-subscriptions-recalculate-totals

In some cases, if the tax settings change after some subscriptions have been created, their totals need to be recalculated in order to include the proper taxes. This plugin recalculates all the subscriptions totals.
PHP
13
star
70

migrator-cli

An experimental WP-CLI based migration tool for moving Shopify stores to WooCommerce.
PHP
13
star
71

woocommerce-subscriptions-restrict-product

Restricts subscription products to a certain number of total active (unended) subscriptions on a site.
PHP
13
star
72

woocommerce-stellar

Accept payment for WooCommerce orders via Stellar (both the currency and the protocol).
JavaScript
12
star
73

woocommerce-order-tables-feature-plugin

Order tables for WooCommerce.
12
star
74

WooCommerce-Quantity-Increment

Adds back <= WooCommerce 2.2 quantity increment buttons
CSS
12
star
75

woocommerce-subscriptions-upstage

Disable Staging Mode for specific subscriptions, as defined in a WCS_UPSTAGED_SUBSCRIPTION_IDS constant.
PHP
12
star
76

woocommerce-free-shipping-progress-bar-block

An inner block for the Cart that indicates how much more is needed to get free shipping.
JavaScript
12
star
77

action-scheduler-admin

Action Scheduler screen for the WooCommerce Admin interface
JavaScript
12
star
78

icons-for-features

Optionally display an icon, instead of a featured image, for your Features by WooThemes features.
CSS
11
star
79

woocommerce-shortcodes

JavaScript
11
star
80

standard-child-theme-kit

This is a "getting started" child theme kit for Standard by 8BIT.
PHP
11
star
81

woocommerce-subscriptions-renewal-logger

Determine why automatic subscription renewal payments aren't being processed despite using an automatic gateway.
PHP
11
star
82

woocommerce-composite-products-conditional-images

Composite Products mini-extension that allows you to conditionally overlay additional images over the main Composite Product image.
PHP
11
star
83

woocommerce-square

Square POS and Payments Integration
PHP
11
star
84

deli

CSS
10
star
85

archives

Hi, we're a collection of archive functions for WordPress. Use us to display archives of your content in "Timeline" or "Sitemap" format, using either a shortcode, action or template tag.
PHP
10
star
86

wceu23-shipping-workshop-final

PHP
10
star
87

subscribe-and-connect

Hi, I'm here to help your visitors subscribe to your content, as well as share it across various social networks.
PHP
10
star
88

woocommerce-git-hooks

Collection of WooCommerce core git hooks.
PHP
10
star
89

woocommerce-bookings-generator

A small helper plugin for WooCommerce Bookings to generate a large number of Bookings on a test store, to measure how WooCommerce Bookings performs under high load.
PHP
10
star
90

sensei-course-participants

This extension has been retired and is no longer being actively maintained.
PHP
9
star
91

storefront-extension-boilerplate

PHP
9
star
92

wc-php-session-handler

Replaces the core WooCommerce session handler with one which uses php sessions.
PHP
9
star
93

woocommerce-legacy-rest-api

The legacy WooCommerce REST API, which used to be part of WooCommerce itself but is removed as of WooCommerce 9.0.
PHP
9
star
94

woocommerce-subscriptions-cancel-after-retry

Cancel a subscription after all failed payment retry attempts have failed.
PHP
9
star
95

woocommerce-subscriptions-backstage

Disable WooCommerce Subscriptions' Staging Mode completely. Caveat emptor.
PHP
9
star
96

woocommerce-subscriptions-disable-paypal

Using WooCommerce Subscriptions? Want to disable PayPal for subscription purchases, but still offer it for buying one-off products? Install and activate this plugin.
PHP
9
star
97

woocommerce-product-type-column

WooCommerce Product Type Column
PHP
8
star
98

woocommerce-jigoshop-converter

Convert existing shop data from Jigoshop to WooCommerce.
PHP
8
star
99

woocommerce-example-package

Example package for a WooCommerce feature plugin that can also be included in core.
Shell
8
star
100

woocommerce-core-to-wordpress-org

Plugin deploy script used for Deploying WooCommerce amongst other things.
Shell
8
star