Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to add Slide & Fade, and Delay
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bogh  
View profile  
 More options Oct 22 2012, 1:58 am
From: Bogh <cont...@skayz.com>
Date: Sun, 21 Oct 2012 22:58:01 -0700 (PDT)
Local: Mon, Oct 22 2012 1:58 am
Subject: How to add Slide & Fade, and Delay

Hi,
This is my first post here, and I really need your help.

Please help on adding a Slide&Fade effect, and a Delay, on the following
Mootools code:
---------------------
    $('updates_pulldown').addEvents({
      mouseenter: function(){

$('updates_pulldown').removeClass('updates_pulldown').addClass('updates_pul ldown_active')
    $('pulldown_contents_wrapper').set('tween', {
    }).show();
      },
      mouseleave: function(){
    $('pulldown_contents_wrapper').set('tween', {
    }).hide();

$('updates_pulldown').removeClass('updates_pulldown_active').addClass('upda tes_pulldown');
      },
    });
---------------------

I have tried some things as you can see below, but nothing worked for me:
---------------------
    $('updates_pulldown').addEvents({
      mouseenter: function(){

$('updates_pulldown').removeClass('updates_pulldown').addClass('updates_pul ldown_active')
    $('pulldown_contents_wrapper').set('tween', {
      duration: 1000,
      physics: 'pow:in:out',
      transition: Fx.Transitions.Bounce.easeOut // This could have been
also 'bounce:out'
    }).SlideOut();
      },
      mouseleave: function(){
    $('pulldown_contents_wrapper').delay(1000).set('tween', {
    duration: 1000,
    }).SlideIn();

$('updates_pulldown').removeClass('updates_pulldown_active').addClass('upda tes_pulldown');
      },
    });
-----------------------

Thanks a lot.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johnny Fuery  
View profile  
 More options Oct 22 2012, 2:44 am
From: Johnny Fuery <john...@gmail.com>
Date: Sun, 21 Oct 2012 23:44:10 -0700
Local: Mon, Oct 22 2012 2:44 am
Subject: Re: [Moo] How to add Slide & Fade, and Delay

The show() and hide() function calls you're making will change the display
style to block and none, respectively. They aren't part of Fx or Fx.Tween.

If you really want to use Tween and you want to get it going from the
Element reference, you should use the tween() method. Since (I'm guessing)
you want to adjust the height, you'll need to make sure your element has a
CSS float property set. Then do something like Element.tween('height',
'0px')

If you shove this into a JSFiddle, someone on this list will probably just
fix it for you.

For delay, it needs to be on a full function reference, either an anonymous
inline declaration or a closure, e.g.,:

(function(){ console.log('this will run in 1000 milliseconds');

}).delay(1000)

...or...

var foo = function(){ console.log('this will run in 1000 milliseconds'); };
foo.delay(1000);

Johnny Fuery
President/Principal Engineer
Fuery Solutions -- makers of MerusCase
1736 Franklin Street, Suite 350
Oakland, CA 94612
510.550.5000 Main
925.997.3878 Mobile
510-836-0915 Fax
j...@fuery.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sanford Whiteman  
View profile  
 More options Oct 22 2012, 2:45 am
From: Sanford Whiteman <sa...@figureone.com>
Date: Mon, 22 Oct 2012 02:45:56 -0400
Local: Mon, Oct 22 2012 2:45 am
Subject: Re: [Moo] How to add Slide & Fade, and Delay
Please put runnable, editable code @ jsFiddle.net. This will make it a
lot easier for someone to help you (remember, element
'updates_pulldown' is meaningless outside of your domain unless you
can show us the scaffolding of your site at jsFiddle).

Thanks,

Sandy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bogh  
View profile  
 More options Oct 22 2012, 3:19 am
From: Bogh <cont...@skayz.com>
Date: Mon, 22 Oct 2012 00:19:19 -0700 (PDT)
Local: Mon, Oct 22 2012 3:19 am
Subject: Re: [Moo] How to add Slide & Fade, and Delay

Thanks for your replies, I have posted the code to JSfiddle:
http://jsfiddle.net/eKTwM/1/

I have used tween because this is what I have found on my searches, I am
not even sure if this is the best way.
I think I would like the height to be adjusted automatically, on slide,
because I can't really restrict the box to a height.
All I want is to add a slide & fade, and a delay on mouseleave.

I appreciate your help


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sanford Whiteman  
View profile  
 More options Oct 22 2012, 2:08 pm
From: Sanford Whiteman <sa...@figureone.com>
Date: Mon, 22 Oct 2012 14:08:34 -0400
Local: Mon, Oct 22 2012 2:08 pm
Subject: Re: [Moo] How to add Slide & Fade, and Delay

> Thanks for your replies, I have posted the code to JSfiddle:
> http://jsfiddle.net/eKTwM/1/

jsFiddle can't read PHP. I almost think your Fiddle is harder to
execute than an e-mail!

In jsFiddle, you put inner markup in the "HTML" pane (everything
*inside* the BODY, not including the BODY tag), your styles in "CSS,"
and JS in "JS." You don't need to wrap JS in domready.

The idea is for the "Result" pane that combines and runs the other
panes, to actually be a page of HTML elements and images, not dumped
PHP code.

Working in jsFiddle can be amazing help in refactoring and simplifying
problematic code; I don't think I could write adaptable classes were
it not for jsFiddle helping me to be generic.

I realize I am being strict about this, but the payoff is that someone
will give you a great solution. But it has to be de-mangle-ified
first.

-- S.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew Hazlett  
View profile   Translate to Translated (View Original)
 More options Oct 22 2012, 7:31 pm
From: Matthew Hazlett <hazl...@gmail.com>
Date: Mon, 22 Oct 2012 19:25:29 -0400
Local: Mon, Oct 22 2012 7:25 pm
Subject: Re: [Moo] How to add Slide & Fade, and Delay
A lot of times, its easier to build the interaction/concept/widget in a
standalone version.  This is particularly helpful if its a concept you
are having trouble with and/or are trying to enlist help from others.  
One you have your interaction/concept/widget working it should be fairly
easy to integrate with your php application.

May I suggest this as a starting point?

On 10/22/2012 2:08 PM, Sanford Whiteman wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bogh  
View profile  
 More options Oct 23 2012, 4:10 am
From: Bogh <cont...@skayz.com>
Date: Tue, 23 Oct 2012 01:10:50 -0700 (PDT)
Local: Tues, Oct 23 2012 4:10 am
Subject: Re: [Moo] How to add Slide & Fade, and Delay

Thank you all for your time. I have solved it somehow.
Sorry for not posting a functional code in jsfiddle, I'll do it better next
time when I'll need your help.
Thanks again, wish you a good day!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sanford Whiteman  
View profile  
 More options Oct 23 2012, 1:46 pm
From: Sanford Whiteman <sa...@figureone.com>
Date: Tue, 23 Oct 2012 13:46:55 -0400
Local: Tues, Oct 23 2012 1:46 pm
Subject: Re: [Moo] How to add Slide & Fade, and Delay

> Thank you all for your time. I have solved it somehow.
> Sorry for not posting a functional code in jsfiddle, I'll do it better next
> time when I'll need your help.
> Thanks again, wish you a good day!

Glad you got it working. Looking forward to your next question!

-- S.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »