Apply a transition to a non-

12 views
Skip to first unread message

Miguel Pignatelli

unread,
Apr 26, 2013, 9:45:31 AM4/26/13
to jqt...@googlegroups.com
Hi,

Is it possible to trigger a specific transition effect triggering an event manually?

I mean, having two div elements working in jqtouch like the following...


  <body>
    <div id="first">
      <a href="#second" class="flip">Go to second</a>
      <p id="myLink">Go to second</p>
    </div>

    <div id="second">
      <div class="toolbar">
<a class="button back" href="#">Back</a>
      </div>
      <p>Some Info</p>
    </div>

    <script>
      $("#myLink").on("click", function() {console.log("clicked"); window.location.href="#second"});
    </script>
  </body>

If you click on the first line of #first (the proper link), you get the "flip" effect in the transition to #second
If you click on the second line (the paragraph with a click event attached), you get the default transition.

Is it possible to get the "flip" transition effect using the second construct?

M;

Reply all
Reply to author
Forward
0 new messages