slide

Javascript slide effect onclick

五迷三道 提交于 2019-12-04 05:24:52
问题 I'd like to add a slide & fade effect to a DIV, with purely Javascript, using "onclick". The code is here: http://jsfiddle.net/TCUd5/ The DIV that has to slide has id="pulldown_contents_wrapper". This DIV is contained in a SPAN, that also triggers it: <span onclick="toggleUpdatesPulldown(event, this, '4');" style="display: inline-block;" class="updates_pulldown" > <div class="pulldown_contents_wrapper" id="pulldown_contents_wrapper"> And I think the JS code that controls the SPAN onclick is:

Slide up and Slide down animation on Webview in Android

不想你离开。 提交于 2019-12-04 05:23:15
i have a list of chapters in a list.when user selects a chapter it get expanded and sub topics in that chapter lists. when user select the particular sub topic its contents get loaded in webview on new screen. its all done fine. But i want some functionality on webview. When user slide up the webview, webview should move up side and a new webview from bottom to upside should appear on screen (slide up animation on webview) with next subtopics contents. same in case of slide down when user slides down web view with previous subtopics contents. Please help how to provide slide up and slide down

Add or remove slides using jQuery FlexSlider

戏子无情 提交于 2019-12-04 04:40:28
Is it possible to add or remove slides in runtime using FlexSlider ? 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. Stephen Himes 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(""); $('#carousel').data('flexslider').addSlide(""); The click on the carousel to scroll to the

Pull out div from right of screen

安稳与你 提交于 2019-12-03 21:23:23
Pull out a div from the left? Easy as pie. Pull it out from the right? Not so much. I am looking for a div to be hidden offscreen but connected to a small tag on screen. When the user clicks the tag, out slides the whole div. This is pretty basic from the left using jQuery and CSS. From the right though, a user can just scroll over to see the "hidden" div! Here is what I want ( http://jsfiddle.net/yHPTv/ ) except instead of the div being partially hidden offscreen-left, I want it partially hidden offscreen-right. Here is what I've tried so far ( http://jsfiddle.net/LU8En/ ), and obviously it

slide between pages using jQuery

╄→гoц情女王★ 提交于 2019-12-03 14:35:46
I have a 4 page website and I want to transition between the 4 pages with a slide effect. I don't want to do this using an #ID. I want to press a button or the link to slide to the next page. I know this can be done using jQuery and I've seen websites that do this. Please help out. Thanks in advance for all suggestions, criticisms, and comments. jose Check out this tutorial and example http://www.queness.com/post/356/create-a-vertical-horizontal-and-diagonal-sliding-content-website-with-jquery Basically, you have to set your CSS and HTML to have all the panels/screens you want as divs - rows

Android: Slide gesture and animation for switching between tabs

こ雲淡風輕ζ 提交于 2019-12-03 14:15:24
问题 I'm sure this has been answered somewhere, already, but I just can't find it: I have a TabHost with three tabs, each containing different views (not Activities). What I want is to make a swiping gesture from right to left and let the current view slide out to the left and the next view slide in from the right, thus changing the current tab. So, I want the switch between tabs to be triggered by a gesture (rather than only by clicking on the tab) and also want to show an animation when the

Pjax animations

匆匆过客 提交于 2019-12-03 11:31:20
I finally got pjax working, but I have another question.. How do I add some jquery animation like fadeout/slideup old content and fadein/slidedown new content? By default pjax just changes the content without any good looking effects.. Any help would be much appreciated. Best Regards Basically, you have a bunch of events to latch on to and do as you like. Here's a basic fadeIn and fadeOut version using the pjax:start and pjax:end as triggers. $(document) .on('pjax:start', function() { $('#main').fadeOut(200); }) .on('pjax:end', function() { $('#main').fadeIn(200); }) Obviously you would swap

jQuery animate() to hide and show elements by sliding left and right

拥有回忆 提交于 2019-12-03 11:21:37
I'm trying to animate something using jQuery. UPDATE I have it working the way I want it. This is the jQuery: $(document).ready(function() { // go chat button $('#go-chat input').click(function() { $('#search, #go-chat').animate({width: '0px'}, 1000, function() { $(this).hide(); $('#login, #go-search').animate({width: '573px'}, 1000, function() { $(this).show(); } ); } ); }); $('#go-search input').click(function() { $('#login, #go-search').animate({width: '0px'}, 1000, function() { $(this).hide(); $('#search, #go-chat').animate({width: '573px'}, 1000, function() { $(this).show(); } ); } ); });

Get &#039;translateX&#039; position in jQuery

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This code sets the translateX position: var pos = -500px; $(.slide).css('-webkit-transform', "translateX(" + pos+ "px)"); but, the following code does not get the translateX position: var currTrans = $(".slide").css('-webkit-transform', "translateX()"); Why? What is the correct way to get the value then? 回答1: Try this, var pos = -500; $('.slide').css('-webkit-transform', 'translateX(' + pos+ 'px)'); var currTrans = $('.slide').css('-webkit-transform').split(/[()]/)[1]; var posx = currTrans.split(',')[4]; Upadate: Demo link jsfiddle 文章来源: Get

Fire event on Bootstrap carousel slide issue

帅比萌擦擦* 提交于 2019-12-03 08:26:19
I try to use this code to fire on an event upon carousel slide, but it fails to work for some reason. Any suggestions? var $carousel = $('#carousel-showcase'); $carousel.carousel(); $carousel.bind('slide', function(e) { setTimeout( function(){ var left = $carousel.find('.item.active.left'); var right = $carousel.find('.item.active.right'); if(left.length > 0) { $("#wrap").animate({ backgroundPositionX: '+=50%' },0); } else if(right.length > 0) { $("#wrap").animate({ backgroundPositionX: '-=50%' },0); } }, 500); }); ringstaff Bootstrap 3 changed the 'slide' event to 'slide.bs.carousel'. Change