Questions tagged [slide]

An UI effect where an element or group of elements move over a surface while maintaining smooth continuous contact.

A graphical element "slides" when when it changes position in a smooth animated way. Often in one position the element is partially hidden.

1823 questions
202
votes
14 answers

How to scroll up or down the page to an anchor using jQuery?

I'm looking for a way to include a slide effect for when you click a link to a local anchor either up or down the page. I'd like something where you have a link like so: link text, img etc. perhaps with a class added so…
ade123
  • 2,773
  • 8
  • 29
  • 32
119
votes
8 answers

Animate visibility modes, GONE and VISIBLE

So im trying to animate when i set the visibility of a linearlayout with other widgets, from GONE to VISIBLE and the opposite.Im using togglebuttons to show and hide. Here's an image to show what i want to do: I can show and hide, but im not…
Maxrunner
  • 1,955
  • 4
  • 24
  • 41
44
votes
5 answers

ViewPager animation fade in/out instead of slide

I got the FragmentBasics example from here. Is there a way make the ViewPager animation simply fade in and out when I swipe instead of sliding left and right? I've been trying some stuff with PageTransformer, but no success, I can still see it…
KKO
  • 1,913
  • 3
  • 27
  • 35
30
votes
3 answers

Android - ListView slide left/right like Samsung contact ListView

I am developing an application, and I need a ListView like conctact ListView of my Samsung Galaxy S: When I slide my finger to the right I can send message to this contact. When I slide my finger to the right I can call to my contact. I have my…
Oliver
  • 313
  • 1
  • 4
  • 8
28
votes
4 answers

link with href="#" scrolls page to top when used with jquery slidetoggle

Possible Duplicate: How do I stop a web page from scrolling to the top when a link is clicked that triggers javascript? I'm using jquery's slidetoggle to show/hide divs. the element that controls the sliding is a text link ( some text inside…
samoyed
  • 881
  • 4
  • 13
  • 25
26
votes
8 answers

No CSS transition for 'height: fit-content'

I use transition: height 500ms to add an animation to an element that slides open via button from height: 0 to height: 100px and vice versa. Since the element's content is added dynamically and I don't know its size I would like to switch to height:…
Sebastian Barth
  • 4,079
  • 7
  • 40
  • 59
20
votes
2 answers

Modifying DOM (slideDown/slideUp) with AngularJS and jQuery

I'm trying to implement a slideDown/slideUp animation with AngularJS. I can't use CSS3's transition (unfortunately) since the height is set to auto (and I don't want to use the max-height workaround), so I'm trying to use jQuery's slideToggle…
sp00m
  • 47,968
  • 31
  • 142
  • 252
20
votes
2 answers

ViewDragHelper: how to use it?

In the Google IO 2013, Google has announced a new version of the Support Library, which includes ViewDragHelper class. I saw the docs, but I couldn't find any sample of usage for this class. For example, a very typical situation: I have a custom…
bvitaliyg
  • 3,155
  • 4
  • 30
  • 46
19
votes
2 answers

How to include a code snippet in a beamer presentation?

What's the best way to include some code snippets in a beamer presentation? I've already tried verbatim, and lstlisting environments - both destroyed my presentation.
mik01aj
  • 11,928
  • 15
  • 76
  • 119
18
votes
3 answers

jQuery animate height

I have a button and a div with inside some text:

Click me

Lot of text here....
I want to show just 2 rows of the text as default, so I put height to 30px and overflow Hidden. When I click on the H2 element I want…
Andrea Turri
  • 6,480
  • 7
  • 37
  • 63
18
votes
4 answers

Using Angular, how do I bind a click event to an element and on click, slide a sibling element down and up?

I'm working with Angular and I'm having trouble doing something that I normally use jQuery for. I want to bind a click event to an element and on click, slide a sibling element down and up. This is what the jQuery would look…
Michael Lynch
  • 2,682
  • 3
  • 31
  • 59
17
votes
1 answer

Android bug in Slide Activity transition

So in trying to use the Slide Activity transition but with a different gravity, the app crashes on using Gravity.START, using this: getWindow().setExitTransition(new Slide(Gravity.START)); and I get this error: IllegalArgumentException: Invalid…
StackOverflowMaster
  • 3,478
  • 3
  • 18
  • 19
16
votes
2 answers

How to do swipe gesture on RecyclerView item without 3rd party lib

Is their any direct support for slide to delete/archive (right to left or left to right) on RecyclerView item. And instead of delete/archive I want four buttons under the list item. something like this https://github.com/47deg/android-swipelistview…
T_C
  • 3,148
  • 5
  • 26
  • 46
16
votes
3 answers

How to set Height Width of ImageView programmatically in android?

How to increase or decrease the size of imageview,textview or anyother by programmatically in linear layout in getview() of slide menu. I got slide menu through androidhive tutorials Exactly in slide menu I need to add a user profile pic and his…
user3737339
  • 231
  • 1
  • 5
  • 11
15
votes
5 answers

Sliding divs horizontally with JQuery

so I'm very new to Javascript and Jquery. What I'd like to create is a two column page where links on the left column will cause a div on the right to slide in horizontally from left to right, and slide out of view when clicked again. I know I need…
Bridget Kilgallon
  • 325
  • 2
  • 3
  • 9
1
2 3
99 100