I’d like to add an animated text overlay on an a>img with some simple effect like fade or animate in/out.
Does anyone know of a plugin that already does this, or can suggest the mootools functions I should be looking at?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll need to translate the following pseudocode into Mootools: –
<div>element inside a given element, using thenew Element()function. The content of the<div>will be passed through in the function arguments in addition to the parent element.mouseenterevent to the<a>tag you want to work on which triggers the above function and passes itself as the parent element. You could set the rel attribute of the parent<a>tag to be the content of the child<div>to make this plugin really dynamic.slideOut()function which takes an element, finds the dimensions of the parent element and carries out a slide animation to move the element outside the parent elements bounds. Make sure you haveoverflow:hidden;set on the parent elements CSS.<a>tag which runs theslideOut()function and passes the child<div>as it’s argument.That should do it.