Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8844879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:35:51+00:00 2026-06-14T11:35:51+00:00

I normally use jQuery, but I am building a site in Squarespace for the

  • 0

I normally use jQuery, but I am building a site in Squarespace for the first time and it already uses YUI so I am picking it up as I go.

I want a simple effect where links fade a bit on mouseenter, and become opaque again on mouseleave.

Looked at some YUI examples, and this is my code now:

 YUI().use('*',function(Y){

 //GET THAT CART UP THERE!
Y.on("domready", function() {

    var over = function(e){
  e.currentTarget.transition({
    duration:0.5,
    opacity:0.5
  });
    };

    var out = function(e){
e.currentTarget.transition({
    duration:0.5,
    opacity:1
  });
    };
Y.all('a').on('mouseenter',over);
Y.all('a').on('mouseleave',out);
});
    });

When the page loads, I get no errors or anything, but also no effect when hovering over links.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:35:53+00:00Added an answer on June 14, 2026 at 11:35 am

    At first glance, it looks like the main body of your code should work. I suspect that what’s happening is that the YUI transition module isn’t actually loaded. Try changing the use(‘*’) to a use(‘transition’).

    Note that in a use(‘‘), the ‘‘ doesn’t mean “fetch and attach all possible YUI modules.” It actually means, “take all YUI modules already present on this page, and attach them here.” In other words, somewhere on the page, you need to explicitly load the transition module.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I'm using jQuery's data method normally, there's no problem. But I want to
http://viralpatel.net/blogs/create-accordion-menu-jquery/ Works great. I want to use this for my site's category based navigation.
i have a site using jquery lazyload its working fine, but now i want
I normally use gVim for editing, but I sometimes use vim when remotely connecting
I want to detect when my touchpad is clicked! I normally use a usb
Normally you use Form.Visible to check if Window is visible at all. But sometimes
Normally, I would use a callback function passed to the 'jQuery.getJSON' function to do
We have a web forms project and in it I want to use jQuery's
I am trying to use the jquery autocomplete plugin but am having trouble getting
I want to use jQuery to submit my form and i can do that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.