Documents

Title
FlexSlider #1. Single Slider
Description
FlexSlider is responsive jQuery slider plugin.
Here, basic single slider setting of Flexslider are posted.
Category
Slider
Library
FlexSlider
jQuery
Include Files
<!-- Add jQuery and Flexslider -->    
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.2/flexslider.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.2/jquery.flexslider.js"></script>
Basic markup

        <script>
            $(function () {
                // If not use '.flexslider' need to rewrite flexslider.css file.
                $('.flexslider').flexslider({
                    option
                });
            });
        </script>
        <div class="flexslider">
            <ul class="slides">
                <li>...</li>
            </ul>
            ...
        </div>
    
Attachment Table

FlexSlider Properties

PropertyTypeDefaultDescription
namespaceString'flex-'Prefix string attached to the classes of all elements generated by the plugin.
selectorString'.slides > li'Must match a simple pattern. '{container} > {slide}'.
animation'fade' or 'slide''fade'Controls the animation type.
easingjQuery transitions'swing'Determines the easing method.
direction'horizontal' or 'vertical''horizontal'Controls the animation direction
reverseBooleanfalseReverse the animation direction.
animationLoopBooleantrueGives the slider a seamless infinite loop.
smoothHeightBooleanfalseAnimate the height of the slider smoothly for slides of varying height.
startAtNumber0The starting slide for the slider, in array notation.
slideshowBooleantrueSetup a slideshow for the slider to animate automatically.
slideshowSpeedNumber7000Set the speed of the slideshow cycling, in milliseconds
animationSpeedNumber600Set the speed of animations, in milliseconds
initDelayNumber0Set an initialization delay, in milliseconds
randomizeBooleanfalseRandomize slide order, on load
pauseOnActionBooleantruePause the slideshow when interacting with control elements.
pauseOnHoverBooleanfalsePause the slideshow when hovering over slider, then resume when no longer hovering.
useCSSBooleantrueSlider will use CSS3 transitions, if available
touchBooleantrueAllow touch swipe navigation of the slider on enabled devices
videoBooleanfalseWill prevent use of CSS3 3D Transforms, avoiding graphical glitches
controlNavBooleantrueCreate navigation for paging control of each slide.
customDirectionNavjQuery Object/Selector''Object/Selector Container the custom navigation markup works with.
directionNavBooleantrueCreate previous/next arrow navigation.
prevTextString'Previous'Set the text for the "previous" directionNav item
nextTextString'Next'Set the text for the "next" directionNavitem
keyboardBooleantrueAllow slider navigating via keyboard left/right keys.
multipleKeyboardBooleanfalseAllow keyboard navigation to affect multiple sliders.
mousewheelBooleanfalse(Dependency) Allows slider navigating via mousewheel
pausePlayBooleanfalseCreate pause/play element to control slider slideshow.
pauseTextString'Pause'Set the text for the "pause" pausePlay item
playTextString'Play'Set the text for the "play" pausePlay item
controlsContainerjQuery Object/Selector-Container the navigation elements should be appended to.
manualControlsjQuery Object/Selector-Define element to be used in lieu of dynamic controlNav.
syncSelector-Mirror the actions performed on this slider with another slider.
asNavForSelector-Turn the slider into a thumbnail navigation for another slider.
itemWidthNumber0Box-model width of individual carousel items, including horizontal borders and padding.
itemMarginNumber0Margin between carousel items.
minItemsNumber0Minimum number of carousel items that should be visible.
maxItemsNumber0Maximum number of carousel items that should be visible.
moveNumber0Number of carousel items that should move on animation.
startFunction-Fires when the slider loads the first slide.
beforeFunction-Fires asynchronously with each slider animation.
afterFunction-Fires after each slider animation completes.
endFunction-Fires when the slider reaches the last slide (asynchronous).
addedFunction-Fires after a slide is added.
removedFunction-Fires after a slide is removed.
Related

Source Code

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Add jQuery and Flexslider -->    
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.2/flexslider.css">
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.2/jquery.flexslider.js"></script>
    <title>FlexSlider #1. Single Slider</title>
    <style>
        .flexslider{
            max-width: 640px;
            margin: 0 auto 60px;          
        }
        .flex-caption {
            padding: .5em 1em;
            left: 0;
            bottom: 0;
            background: rgba(0,0,0,.5);
            color: #fff;
            margin: 0;
        }        
    </style>
</head>
<body>
    <header>
        <h1 class="dlw-title">FlexSlider <small>#1. Single Slider</small></h1>
        <p class="dlw-description">FlexSlider is responsive jQuery slider plugin.<br>
            Here, basic single slider setting of Flexslider are posted.</p>
    </header>
    <section>
        <h2 class="dlw-subtitle">[1] Basic Slider </h2>
        <script>
            $(function () {
                $('.basic-slider').flexslider({
                    animation: "slide"
                });
            });
        </script>            
        <div class="flexslider basic-slider">
            <ul class="slides">
                <li><img src="images/photo01-m.jpg" /></li>
                <li><img src="images/photo02-m.jpg" /></li>
                <li><img src="images/photo03-m.jpg" /></li>
                <li><img src="images/photo04-m.jpg" /></li>
                <li><img src="images/photo05-m.jpg" /></li>
                <li><img src="images/photo06-m.jpg" /></li>
                <li><img src="images/photo07-m.jpg" /></li>
                <li><img src="images/photo08-m.jpg" /></li>  
                <li><img src="images/photo09-m.jpg" /></li>
                <li><img src="images/photo10-m.jpg" /></li>                                                
            </ul>
        </div>
    </section> 
    <section>
        <h2 class="dlw-subtitle">[2] With Caption Slider</h2>
        <script>
            $(function () {
                $('.caption-slider').flexslider({
                    animation: "slide"
                });
            });
        </script>            
        <div class="flexslider caption-slider">
            <ul class="slides">
                <li><img src="images/photo01-m.jpg" /><p class="flex-caption">Look at the keyboard placed on the desk from the side.</p></li>
                <li><img src="images/photo02-m.jpg" /><p class="flex-caption">Dark coffee and notepad.</p></li>
                <li><img src="images/photo03-m.jpg" /><p class="flex-caption">Around the desk unified with white.</p></li>
                <li><img src="images/photo04-m.jpg" /><p class="flex-caption">Watch keyboard and mouse closely.</p></li>
                <li><img src="images/photo05-m.jpg" /><p class="flex-caption">Focus on the mouse.</p></li>
                <li><img src="images/photo06-m.jpg" /><p class="flex-caption">Work is completed with dual monitor.</p></li>
                <li><img src="images/photo07-m.jpg" /><p class="flex-caption">Writing the manuscript based on the memo.</p></li>
                <li><img src="images/photo08-m.jpg" /><p class="flex-caption">I am not working overtime.</p></li>  
                <li><img src="images/photo09-m.jpg" /><p class="flex-caption">Watch the desktop from directly above.</p></li>
                <li><img src="images/photo10-m.jpg" /><p class="flex-caption">Always put coffee next to the computer.</p></li>                                                
            </ul>
        </div>
    </section>     
    <section>
        <h2 class="dlw-subtitle">[3] With Thumbnail Slider </h2>
        <script>
            $(function () {
                $('.thumbnail-slider').flexslider({
                    animation: "slide",
                    controlNav: "thumbnails"
                });
            });
        </script>            
        <div class="flexslider thumbnail-slider">
            <ul class="slides">
                <li data-thumb="images/photo01-t.jpg"><img src="images/photo01-m.jpg" /></li>
                <li data-thumb="images/photo02-t.jpg"><img src="images/photo02-m.jpg" /></li>
                <li data-thumb="images/photo03-t.jpg"><img src="images/photo03-m.jpg" /></li>
                <li data-thumb="images/photo04-t.jpg"><img src="images/photo04-m.jpg" /></li>
                <li data-thumb="images/photo05-t.jpg"><img src="images/photo05-m.jpg" /></li>
                <li data-thumb="images/photo06-t.jpg"><img src="images/photo06-m.jpg" /></li>
                <li data-thumb="images/photo07-t.jpg"><img src="images/photo07-m.jpg" /></li>
                <li data-thumb="images/photo08-t.jpg"><img src="images/photo08-m.jpg" /></li>  
                <li data-thumb="images/photo09-t.jpg"><img src="images/photo09-m.jpg" /></li>
                <li data-thumb="images/photo10-t.jpg"><img src="images/photo10-m.jpg" /></li>                                                
            </ul>
        </div>
    </section>      
</body>
</html>

Comment

Search

Style Design
Text Style DesignCSS

Here, design samples of various effects to text are posted.

Headline (Heading) Style DesignCSS

The headline is the text indicating the nature of the article below it.
Here, design samples of headline using style sheets are posted.

OL (Ordered List) Style DesignCSS

The HTML <ol> element represents an ordered list of items.
Here, design samples of ol using style sheets are posted.

HR (Separator Line) Style DesignCSS

The HTML <hr> element represents a thematic break between paragraph-level elements.
Here, design samples of hr using style sheets are posted.

Box Shadow Style DesignCSS

The box-shadow CSS property is used to add shadow effects around an element's frame.
Here, design samples of box-shadow property using style sheets are posted.

Layout
How to specify a breakpoint and switch imagesJS

Using <picture> and srcset, it is a method of switching images according to screen size. It also corresponds to retina.
In this example, Picturefill is added for IE.

Grid LayoutCSS

Grid is the value of the CSS display property.
Here, layout samples of grid property are posted.

FlexCSS

Flex is the value of the CSS display property.

Link & Button
Bootstrap ButtonCSS

It is a standard button design of Bootstrap Framework.

Hover.cssCSS

Hover.css is a style-sheet collection of hover effects.

Button.cssCSS

Button.css is collection of CSS3 button animations.

Card
Bootstrap CardCSS

It is a standard Card design of Bootstrap Framework.

Text
Arctext.jsjQuery

Arctext.js is a jQuery plugin that causes a string to curve along a specified circle radius.

Lettering.jsjQuery

Lettering.js is a jQuery plugin that encloses a specified character string with one character, one word, one column by <span> tag.

Textillate.jsjQuery

Textillate.js is a jQuery plugin that adds In / Out animation effects to text.

FitText.jsjQuery

FitText.js is jQuery plugin that fits the font size according to the width of the parent element.

Media
FeedEkjQuery

FeedEk is a jQuery plugin that parses RSS and Atom feeds and displays them.

YouTube Embed

Introduction of various embedment methods of YouTube.

FitVids.jsjQuery

FitVids is a jQuery plug-in that converts YouTube videos embedded with iframe into responsive.

xZoomjQuery

xZoom is a jQuery plug-in that shows a zoom preview of the image.
It is possible to customize the preview position and zoom.

Instagram.cssCSS

Instagram.css is a stylesheet set that filters photos like instagram.

Date
Moment.jsJS

Moment.js is a javascript that processes and displays date and time.

Bootstrap Material DatePickerjQuery

Bootstrap Material DatePicker is jQuery data picker plugin using Moment.js.

Table
MultifilterjQuery

Multifilter is jQuery Table Filtering Plugin.

Flex TableCSS

Responsive table using "display: flex;".
Not supported for rowspan.

Grid TableCSS

Responsive table using "display: grid;".
Not supported for rowspan.

Bootstrap TableCSS

It is a standard Table design of Bootstrap Framework.

Form
jQuery Mask PluginjQuery

jQuery Mask Plugin is jQuery plugin that make mask (validation) on form field.

Select2 #1. Basic SettingjQuery

Select2 is a jquery plugin that makes select form more advanced.
Here is the basic usage of Select2.

jQuery SearcherjQuery

jQuery Searcher is jQuery search/filtering plugin that supports various markups.

Slider
Bootstrap CarouseljQuery

It is a standard Carousel of Bootstrap Framework.

FlexSlider #1. Single SliderjQuery

FlexSlider is responsive jQuery slider plugin.
Here, basic single slider setting of Flexslider are posted.

FlexSlider #2. Carousel SliderjQuery

FlexSlider is responsive jQuery slider plugin.
Here, basic carousel slider setting of Flexslider are posted.

slick #1. Single SliderjQuery

slick is responsive jQuery slider plugin.
Here, basic single slider setting of slick are posted.

slick #2. Carousel SliderjQuery

slick is responsive jQuery slider plugin.
Here, carousel slider setting of slick are posted.

Lightbox
fancyBox #1. basic image lightboxjQuery

fancyBox is jQuery lightbox plugin.
Here, basic image lightbox setting of fancyBox are posted.

fancyBox #2. media lightboxjQuery

fancyBox is jQuery lightbox plugin.
Here, YouTube, Vimeo, Instagram, Google Maps, inline HTML, iframe lightbox setting of fancyBox are posted.

Magnific Popup #1. basic image lightboxjQuery

Magnific Popup is jQuery lightbox plugin.
Here, basic image lightbox setting of Magnific Popup are posted.

Magnific Popup #2. media lightboxjQuery

Magnific Popup is jQuery lightbox plugin.
Here, YouTube, Vimeo, Google Maps, inline HTML lightbox setting of Magnific Popup are posted.

Magnific Popup #3. CSS3-based animation effectsjQuery

Since Magnific Popup does not incorporate animation effects by standard, you need to set it yourself.
Here we summarize the CSS3-based animation settings.

Navigation
animsitionjQuery

animsition is a jQuery plugin that adds an in/out animation effect at the time of page transition.

GreedyNavjQuery

GreedyNav is a responsive navigation menu using jQuery which switches over the items that protruded when the screen was scaled down to dropdown.

GridTabjQuery

GridTab is a lightweight jQuery plugin to create grid based responsive tabs.

jQuery.NiceScrolljQuery

jQuery.NiceScroll is a jQuery plugin that extends scroll display and functions.

metisMenujQuery

metisMenu is a jQuery plugin that expands vertical and vertical menus.

fullPage.js #1. basic fullscreen scrollingjQuery

fullPage.js is jQuery Fullscreen Scrolling plugin.
Here, basic fullscreen scrolling of fullPage.js are posted.

fullPage.js #2. fullscreen scrolling with menujQuery

fullPage.js is jQuery Fullscreen Scrolling plugin.
Here, navigation menu is displayed..

Offside.js #1. Basic Off-canvasJS

Offside.js is a JavaScript kit that expands off-canvas.
This is a sample where the left side off-canvas expands.

Offside.js #2. Multiple Off-canvasJS

Offside.js is a JavaScript kit that expands off-canvas.
This is a sample that expands multiple off-canvases.

Filterizr #1. Basic FilteringjQuery

Filterizr is a jQuery plugin that sorts, shuffles, searches for the items in the container.
This is a basic sample without setting options.

Filterizr #2. Advanced FilteringjQuery

Filterizr is a jQuery plugin that sorts, shuffles, searches for the items in the container.
This is a sample of more advanced setting of Filterizr.

Animation
animsitionjQuery

animsition is a jQuery plugin that adds an in/out animation effect at the time of page transition.

Textillate.jsjQuery

Textillate.js is a jQuery plugin that adds In / Out animation effects to text.

ScrollajQuery

Scrolla is jQuery scroll animation plugin.

Hover.cssCSS

Hover.css is a style-sheet collection of hover effects.

Animate.cssCSS

Animate.css is a style-sheet collection of animation effects.

jQuery Easing PluginjQuery

jQuery Easing Plugin is a plugin to extend the easing (animation effect) of jQuery.
The easing of element is posted.

Background
fullPage.js #1. basic fullscreen scrollingjQuery

fullPage.js is jQuery Fullscreen Scrolling plugin.
Here, basic fullscreen scrolling of fullPage.js are posted.

fullPage.js #2. fullscreen scrolling with menujQuery

fullPage.js is jQuery Fullscreen Scrolling plugin.
Here, navigation menu is displayed..

jquery.mb.YTPlayerjQuery

jQuery.mb.YTPlayer is jQuery Background player plugin.

Modal / Tooltip
Hint.cssCSS

Hint.css is a style sheet set for tooltip.
You can display tooltip just by adding class name.

ProtipjQuery

Protip is a jQuery plugin that generates tooltips.
Set the position, size, etc. of the tooltip only with data attribute.

Social
Framework
Bootstrap CarouseljQuery

It is a standard Carousel of Bootstrap Framework.

Bootstrap CardCSS

It is a standard Card design of Bootstrap Framework.

Bootstrap ButtonCSS

It is a standard button design of Bootstrap Framework.

Bootstrap TableCSS

It is a standard Table design of Bootstrap Framework.

Cheat Sheet
HTML5 Cheat Sheet

HTML5 Cheat Sheet by Make A Website Hub

CSS3 Cheat Sheet

CSS3 Cheat Sheet by Smashing Magazine

Visual Studio Code Keyboard Shortcuts

This is the Visual Studio Code default keyboard shortcut list.

GreenSock Cheat Sheet

Cheese sheet of TweenMAX, TweenLite, TimelineLite, TimelineMax by GreenSock.

Other
Google Search

On this page you can search for codes collectively.

Design News

It is a news feed about design.