0

I am looking to create an HTML page where <p> tags can be interacted with based on mouse clicks. I am looking to incorporate horizontal-sliding transitions with ease-in/ease-out, like those in deck.js or timeline.js for some of these <p> tags.

Beyond digging in the deck.js and timeline.js code (which has been pretty fruitless thus far), can someone recommend a tutorial or example for accomplishing this effect for text? My google-fu has only pointed me to very specific examples for image slide decks.

Evan Emolo
  • 1,660
  • 4
  • 28
  • 44

2 Answers2

0

put it in a div and then:

$(document).ready(function(){
  $("div").click(function(){
    $("div").animate({
      right:'250px',
    });
  });
});

or whatever way you want to move it you can look up all the effects at w3schools

http://w3schools.com/jquery/jquery_animate.asp

Rice_Crisp
  • 1,242
  • 1
  • 16
  • 33
  • No programming hipster. The site posted makes a good point on why not using w3schools. Please look ar it. You might desagree of course – Ateszki Mar 21 '13 at 17:28
  • Well I disagree. For a beginners programming supplement and a general source of low-level reference, it's better than any other site. – Rice_Crisp Mar 21 '13 at 17:32
0

I think this question could help you out Sliding divs horizontally with JQuery .Remember that <p> tags can be moved as div so I think you won't have issues. If I'm wrong, tell me.

Community
  • 1
  • 1
steo
  • 4,586
  • 2
  • 33
  • 64