slider

Slick carousel loads the wrong width on initialization

孤者浪人 提交于 2019-12-22 05:14:34
问题 On page load, for the first second of so, the first slide only takes up half of the screen before correcting itself. It is causing an unpleasant/snappy load experience. If I monitor the elements code via inspect I can see the inline width get updated about a second into page load. Any suggestions? 回答1: i have same problem solution is start from prev slide (initialSlide: ...) and call slick('slickNext') 来源: https://stackoverflow.com/questions/36944421/slick-carousel-loads-the-wrong-width-on

Full screen slider with zoom in/out transition effect

半腔热情 提交于 2019-12-22 01:08:21
问题 I mean something like this. How can I obtain that result with a library like GSAP, Transit or VelocityJS? http://www.echocapital.com/ Thanks in advance :) 回答1: Dunno about GSAP and Velocity Cause all you need is a bit of CSS and some JS or jQuery, I mean you can rewrite easily the below in vanilla JS: var $gal = $("#gallery"), $img = $gal.find("> div"), n = $img.length, i = 0, t; $img.eq(i).addClass('on'); (function loop() { t = setTimeout(function(){ $img.removeClass("on").eq(i++%n).addClass

Multiple jquery sliders

筅森魡賤 提交于 2019-12-21 21:21:47
问题 I'm struggling with a multiple jQuery slider - In this scenario if one slider increases the other sliders decreases accordingly . The sliders are creating dynamically. I tried many examples but there is no luck. I will explain the scenario if there is 3 slider and each set to 500, 1000,1500 , if I increase the value of first slider to 100(500+100) then 100 should be reduced from the other two(50 each). I checked http://jsfiddle.net/jenishkottaram/sNfBM/14/ and http://jsfiddle.net/Y5ZLL/400/

Making a slider without recursion

拥有回忆 提交于 2019-12-21 17:28:39
问题 Given the following jsFiddle, how can I implement the same effect as I have made without building on the stack? http://jsfiddle.net/YWMcy/1/ I tried doing something like this: jQuery(document).ready(function () { 'use strict'; (function ($) { function validateOptions(options) { if (typeof(options.delay) == typeof(0)) { $.error('Delay value must an integer.'); return false; } else if (options.delay < 0) { $.error('Delay value must be greater than zero.'); return false; } if (typeof(options

jQuery slider tutorials?

点点圈 提交于 2019-12-21 17:22:50
问题 Does anyone know of some good tutorials that explain how to use the JQuery Slider. I've found a few, but none of them really present what I need in clear terms. What I really need to figure out how to do is make the slider go from 1.0 - 5.0 (including all tenths) and when it changes set a hidden control based on that value. Thanks. 回答1: The documentation on the jQuery site is pretty good. $('#mySlider').slider({ min : 1, max : 5, stepping: .1, // or, steps: 40 change : function (e, ui) { $('

How to reinitialize flexslider for a dynamic loading

▼魔方 西西 提交于 2019-12-21 12:01:08
问题 I got a problem with flexslider, I need to download my picture in base64 from a webservice. After the download is complete, I make an .append() to add my slide... But sometimes, everything is added perfectly but the slider doesn't reload correctly So I get code like this : instead of code like this : How can I reinitiate my slider in this case ? 回答1: Solution found ! Just add this line of code to remove the old slider ref if exists $('#flexslider').removeData("flexslider"); 回答2: When the

Add or remove slides using jQuery FlexSlider

末鹿安然 提交于 2019-12-21 11:20:13
问题 Is it possible to add or remove slides in runtime using FlexSlider? 回答1: The new version of FlexSlider 2 already supports this methods. 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. 回答2: This is just what I saw after looking at this thread. The slider and the carousel object can be instantiated and added to like this: $('#slider').data('flexslider').addSlide("")

FlexSlider: Center current image

一个人想着一个人 提交于 2019-12-21 06:18:10
问题 I switched from using the bjqs slider (it's responsiveness was subpar) to using the popular FlexSlider. I had modified the bjqs slider to display the "current" image centered on the screen, with the previous and next images displayed (partially) before and after the current image. You can see my implementation using the bjqs slider here to get an idea for what I'm after. Now with the FlexSlider, I can't quite figure out a way to do this. The images are floated left, so the "current" image

FlexSlider: Center current image

跟風遠走 提交于 2019-12-21 06:17:06
问题 I switched from using the bjqs slider (it's responsiveness was subpar) to using the popular FlexSlider. I had modified the bjqs slider to display the "current" image centered on the screen, with the previous and next images displayed (partially) before and after the current image. You can see my implementation using the bjqs slider here to get an idea for what I'm after. Now with the FlexSlider, I can't quite figure out a way to do this. The images are floated left, so the "current" image

Jquery UI Slider - Input a Value and Slider Move to Location

こ雲淡風輕ζ 提交于 2019-12-21 05:36:10
问题 I was wondering if anyone has found a solution or example to actually populating the input box of a slider and having it slide to the appropriate position onBlur() .. Currently, as we all know, it just updates this value with the position you are at. So in some regards, I am trying to reverse the functionality of this amazing slider. One link I found: http://www.webdeveloper.com/forum/archive/index.php/t-177578.html is a bit outdated, but looks like they made an attempt. However, the links to