Trying to do this cool hover effect with CSS only...

I've got 'img' thumbnails that are sometimes positioned
absolutely,
sometimes relatively, but aren't individually contained in
anything, like so
<a href="#">
<img src="image1.png" width="100" height="150" border="0"
class="tn" />
</a>
<a href="#">
<img src="image2.png" width="100" height="150" border="0"
class="tn" />
</a>
Now, I've already brought up the limitations of PNG on IE
(namely, even if
you "fix" PNG support on IE, IE will flatten your alpha
channels and strip
the individual pixels' transparency levels before overriding
them with a
single common attribute). This limitation makes it impossible
for me to do a
simple 90%-to-100% hover effect to "highlight" the thumbnail
on mouseover.
Micha recommended placing normal a highlighted versions of
the same
thumbnail inside and outside the viewport, and swapping them
on mouseover.
However, that would double the amount of image data being
sent to the user.
So what I thought to do, instead, is superpose a standalone
PNG of a small
spotlight, OVER the original thumbnail, on hover. Because it
would be the
same PNG being superposed over each thumb being hovered over,
the amount of
image data being sent to the user wouldn't be all that
different.
Would I need javascript for this, or can it be done with CSS
only?
Again, it would be the same spotlight.png file being
superposed on images on
mouseover, and it wouldn't be a big deal if the image bled
over surrounding
images (it would actually make it look more real).
Thanks.

say wha???
--Nancy O.
Alt-Web Design & Publishing
www.alt-web.com
"Murray *ACE*" <[email protected]> wrote
in message
news:[email protected]...
> Nobody can disagree with that analysis, but a LOADING
page would do
nothing
> to help with this, doncha know?
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
> ==================
>
>
> "Nancy O" <[email protected]> wrote in
message
> news:[email protected]...
> > Sprite images are a tad smaller in filesize than
the sum of their
> > individual
> > parts. As you say, Murray, it's marginal. But the
real *efficiency*
> > comes
> > from fewer server requests to load multiple images.
Once the sprite has
> > loaded, there is no perceivable delay on hover - as
there often is with
> > conventional image swapping. Finally, since the
substitution effect is
> > pure
> > CSS, there's no need for JavaScripts which can add
weight to a page.
> >
> >
> > --Nancy O.
> > Alt-Web Design & Publishing
> > www.alt-web.com
> >
> >
> > "Murray *ACE*"
<[email protected]> wrote in message
> > news:[email protected]...
> >> By their nature, sprites are larger
dimensionally than the individual
> >> images, so the savings would be marginal, I
think. What I mean by that
> >> is
> > a
> >> simple rollover sprite would be the same size
as the combined up and
over
> >> images, placed adjacent to each other, no?
> >>
> >> --
> >> Murray --- ICQ 71997575
> >> Adobe Community Expert
> >> (If you *MUST* email me, don't LAUGH when you
do so!)
> >> ==================
> >>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
> >>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
> >> ==================
> >>
> >>
> >> "Nancy O" <[email protected]>
wrote in message
> >> news:[email protected]...
> >> >< Micha recommended placing normal &
highlighted versions of the same
> >> > thumbnail inside and outside the viewport,
and swapping them on
> > mouseover.
> >> > However, that would double the amount of
image data being sent to the
> >> > user.>
> >> >
> >> > Not if you use a sprite. Have a look at
this CSS Sprite Demo.
> >> >
http://alt-web.com/CSS-Sprite-Demo.html
> >> >
> >> >
> >> > --Nancy O.
> >> > Alt-Web Design & Publishing
> >> > www.alt-web.com
> >> >
> >> >
> >> >
> >> > "Mike" <[email protected]> wrote in
message
> >> > news:[email protected]...
> >> >> I've got 'img' thumbnails that are
sometimes positioned absolutely,
> >> >> sometimes relatively, but aren't
individually contained in anything,
> > like
> >> > so
> >> >> :
> >> >>
> >> >> <a href="#">
> >> >> <img src="image1.png" width="100"
height="150" border="0"
class="tn"
> > />
> >> >> </a>
> >> >> <a href="#">
> >> >> <img src="image2.png" width="100"
height="150" border="0"
class="tn"
> > />
> >> >> </a>
> >> >>
> >> >> Now, I've already brought up the
limitations of PNG on IE (namely,
> >> >> even
> >> >> if
> >> >> you "fix" PNG support on IE, IE will
flatten your alpha channels and
> >> >> strip
> >> >> the individual pixels' transparency
levels before overriding them
with
> > a
> >> >> single common attribute). This
limitation makes it impossible for me
> >> >> to
> >> >> do
> >> > a
> >> >> simple 90%-to-100% hover effect to
"highlight" the thumbnail on
> >> >> mouseover.
> >> >>
> >> >> Micha recommended placing normal a
highlighted versions of the same
> >> >> thumbnail inside and outside the
viewport, and swapping them on
> >> >> mouseover.
> >> >> However, that would double the amount
of image data being sent to
the
> >> > user.
> >> >>
> >> >> So what I thought to do, instead, is
superpose a standalone PNG of a
> >> >> small
> >> >> spotlight, OVER the original
thumbnail, on hover. Because it would
be
> > the
> >> >> same PNG being superposed over each
thumb being hovered over, the
> > amount
> >> > of
> >> >> image data being sent to the user
wouldn't be all that different.
> >> >>
> >> >> Would I need javascript for this, or
can it be done with CSS only?
> >> >>
> >> >> Again, it would be the same
spotlight.png file being superposed on
> > images
> >> > on
> >> >> mouseover, and it wouldn't be a big
deal if the image bled over
> >> > surrounding
> >> >> images (it would actually make it look
more real).
> >> >>
> >> >> Thanks.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >
> >
>

Similar Messages

  • We have bought an Apple TV, and have downloaded the sky sports app. We are trying to watch this via airplay, but we are only managing to get the sound, not the picture. Any ideas??

    We have bought an Apple TV, and have downloaded the sky sports app. We are trying to watch this via airplay, but we are only managing to get the sound, not the picture. Any ideas??

    Sky do not allow the app to work with Airplay.You will only get sound.

  • Trying to duplicate this "Energy Flow" effect (originally created in AE)

    Following the tutorial from videocopilot on "soul removal"...
    http://www.videocopilot.net/tutorials/soul_removal/
    I created a couple variations on an energy glow effect in AE, here:
    http://www.youtube.com/watch?v=HzdwK2LoQbE
    http://www.youtube.com/watch?v=KWYrfsSMZ0k
    I think this should be easy to duplicate in Motion, but I'm going slightly nuts trying to figure it out. The effect is created by having some simple white circle particles with AE's Fast Blur and CC Vector Blur added. I know how to do something similar to Fast Blur in Motion, but I can't figure out how to achieve something equivalent to CC Vector Blur. There must be some way of creating something similar, though. Any Motion gurus out there care to help me save my sanity?
    (I know there are somethings that AE can do, that Motion can't, but I don't think this is one. I would hope that Motion is able to do this)

    First of all, thanks for intriguing me enough that I decided to waste my morning figuring this out.
    Anyway, I watched the tutorial, and the conclusion I came to is that to attempt to duplicate the tutorial step by step is to undermine motion's capabilities.
    Now, I will preface this by saying that my "energy flow" is not identical. But I think it looks really good. Also, I didn't work to modify it all that much, so I'm convinced that with a little tweaking, it'll look even better than the AE version.
    Ok. When watching the AE tutorial, Andrew Kramer uses the CC Vector blur to turn circle particles into more of a smoky, curvy line. When looking at the way vector blur affected the particles, it reminded me of the caustics generator in Motion. So here's what I did.
    First, I borrowed a pre-existing particle emitter that already looks like energy. You can find it in the library under the abstract folder in Particles. It's called Flow 01 interestingly enough. Then I adjusted the emission angle to 90 and the range to a small number like 7 or so. This gets the particles (which BTW are curved lines, not circles) moving to the right like the tutorial.
    Then I increased the speed quite a bit, and the birth rate a little, and introduced some speed randomness. Again, you can tweak these to give this the look you want. Once I got the flow moving, I had to set up the distortion.
    I created a new group and placed the caustics generator in there. I tweaked the generator so that the water-like ripples were small, bright, and had a high level of refraction. Then I applied a gaussian blur to the generator to soften the edges quite a bit.
    Going back to my particle group, I added the Refraction filter from the Distortion folder. But (and this is important), I added it to the GROUP, not to the emitter. The reason has to do with a step below. I used the caustics generator as the source for the refraction (and turned off the caustics group as well) and made sure I had high levels of refraction and softness.
    This more or less made my emitter look like a reflection in water, until I fixed the resolution for the group. Then I got the look I was going for.
    And that is all there is to it. You'll still have to do the rest like duplicate the emitter, add an emitter that does the little flying particles, but the energy stream looks good to me.
    I'm including a link to my project so you can take it apart. I hope this helps.
    [Energy Flow|http://www.timesavertutorials.com/fileshare/energy.zip]
    Andy

  • Image hover effects with centred title

    Hi All,
    I would like to add to my images a nice slick looking image overlay which has the title of the product in the middle. Can anyone point me in the direction of a good one please. I have searched for a while now and cannot find one which has a vertically centred text in the middle of it.
    Any help would be greatly appreciated!
    Thank you.
    Alex

    Alex_roo wrote:
    Sorry another quick question. Can this be made to fit with a responsive design. I have just tried width and heights to auto but that doesn't work. Thanks again.
    Here's a quick tweak of Jons code.........still have to play around with vertically centering the text at various media query breaks, but it's responsive.
    <!doctype html>
    <html lang="en-us">
    <head>
    <meta charset="utf-8" />
    <title>Fade In Info</title>
    <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,300' rel='stylesheet' type='text/css'>
    <style type="text/css">
    body {
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 17px;
    img {
    max-width: 100%;
    height: auto;
    #wrapper {
    width: 88%;
    margin: auto;
    overflow: hidden;
    .content {
    float: left;
    width: 46%;
    position:relative;
    margin: 0 2% 0 2%;
    .content p {
    opacity: 0;
    .fade{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align:center;
    vertical-align: middle;
    color:rgba(0,0,0,0);
    -webkit-transition: all 500ms;
    transition:all 500ms;
    .fade p {
    margin-top: 48%;
    color: #fff;
    .content:hover .fade {
    background-color:rgba(0, 0, 0, .35);
    color:rgba(0,0,0,1);
    opacity: 1;
    .content:hover .fade p {
    opacity: 1;
    @media screen and (max-width: 500px)
    .fade p {
    margin-top: 42%;
    @media screen and (max-width: 480px)
    .fade p {
    margin-top: 48%;
    .content {
    float: none;
    width: 100%;
    margin: 0 0 15px 0;
    </style>
    </head>
    <body>
    <div id="wrapper">
    <div class="content">
    <img src="woman_face.jpg" style="display: block;">
    <div class="fade"><p>Some text or whatever</p></div>
    </div>
    <!-- end content -->
    <div class="content">
    <img src="woman_face.jpg" style="display: block;">
    <div class="fade"><p>Some text or whatever</p></div>
    </div>
    <!-- end content -->
    </div>
    <!-- end wrapper -->
    </body>
    </html>

  • How can i accomplish this cool banner effect?

    notice the "hide banner" option on the right sub-navigation.
    I want to use this functionality along with a cookie that will
    remember if the user wants it closed or open.
    http://www.wallopcreative.com/portfolioProjects/chineseGardens/
    thanks in advance,
    brad

    check out jquery (jquery.org)

  • HT1933 I tried to do this but came up with error cannot connect to itunes

    Help my son purchased something and I need a refund but can't report problem like it says!

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • 2 text a:hover effects using CSS

    Hi, I am trying to find a way to get text links to work differently with "colour and roll over"  in my html page.
    I have a few table within the page "body" with one "id" as an example as id="content"
    How can I get the id="content" to have a different roll over effect to the main "body"
    I'm using CSS and this is what I am using bellow for the body roll over:
    body,td,th {
              font-family: Verdana, Arial, Helvetica, sans-serif;
              font-size: 10px;
              color: #FFFFFF;
    a:link {
              color: #CCCCCC;
              text-decoration: none;
    a:visited {
              color: #CCCCCC;
              text-decoration: none;
    a:hover {
              color: #FFFF00;
              text-decoration: underline;
    a:active {
              color: #FFFF00;
              text-decoration: none;
    ============================================================================
    This is what I have so far in CSS for the id="content" but not working with a conflict between the two link:
    ============================================================================
    #content
    a:link {
      color: #6600FF;
      text-decoration: none;
    a:visited {
      color: #FF00FF;
      text-decoration: none;
    a:hover {
      color: #000000;
      text-decoration: underline;
    a:active {
      color: #6600FF;
      text-decoration: none;
    Any help would be appreciated?
    Gary

    "body a:link" is the same as a:link since the <body> tag is the ancestor of all content tags.
    The purpose of a compound (or descendant) selector (e.g. #content a:link) is to target certain tags in specific parts of a page.
    So a:link is the correct syntax for a generic rule for all unvisited links on a page.
    Then you've correctly targetted links inside id="content" via the other, more specific, rules.

  • In trying to print 4 page web display with pictures, only first page pictures print but remaining text prints. What gives?s

    See question.

    I did all those things using Word and Paint to no avail. This raises another problem My PC came with Works bundled which suddenly stopped working, although it could handle graphics. MS had no solution so I deleted it and figured I could download it from MS.
    Hah. Sure I could...for $130. So now I need a free word processing program which will handle graphics.
    Any ideas?

  • Using the brilliant effect with a size oscillate.

    Hi,
    Trying to achieve a Star Trek effect with the Brilliant particle generator. It's the flash at the end of this (http://youtube.com/watch?v=8d10vQHbZQU).
    I'm trying to replicate it with the Brilliant particle and i get something strange. I added an oscillate to the scale parameter, and while it works I get some particles drifting along the y-axis? I'm not sure why it's doing this. I'm applying the oscillate to the whole group. Should I be adding it to just the particle?
    Cheers and Thanks,
    Jose

    Have you taken a look at the Dazzle filter? You may be able to recreate that effect with just the Dazzle filter and some object opacity keying plus adjustments and key framing to Dazzles Amount and Brightness parameters.

  • Hover Effect Follows My Mouse Everywhere After it's Loaded

    Hi,
    I've created the hover effect in a movie clip (called
    characters_mc) and placed it on another movie clip (main_mc) and
    this main_mc is placed on my main timeline. I would like the hover
    effect to display only on the characters_mc but the hover effect
    applies to everything else on the scene (when the characters_mc is
    loaded). The hover effect follows my mouse after the characters_mc
    is loaded.
    Here is the AS I have placed on the main_mc:
    b1.onRollOver = function() {
    _root.captionFN(true, "pick me!", this); //display the
    function (true) or to hide the function (false)
    this.onRollOut = function() {
    captionFN(false);
    b2.onRollOver = function() {
    _root.captionFN(true, "Hi!", this);
    this.onRollOut = function() {
    captionFN(false);
    b3.onRollOver = function() {
    _root.captionFN(true, "Get Jac'd Up!", this);
    this.onRollOut = function() {
    captionFN(false);
    b4.onRollOver = function() {
    _root.captionFN(true, "Boo!", this);
    this.onRollOut = function() {
    captionFN(false);
    b5.onRollOver = function() {
    _root.captionFN(true, "I'll be your guide", this);
    this.onRollOut = function() {
    captionFN(false);
    b6.onRollOver = function() {
    _root.captionFN(true, "Welcome!", this);
    this.onRollOut = function() {
    captionFN(false);
    _root.captionFN = function (showCaption, captionText, bName)
    if (showCaption) {
    createEmptyMovieClip("hoverCaption",
    this.getNextHighestDepth());
    cap.desc.text = captionText;
    cap._width = 7*cap.desc.text.length;
    cap._alpha = 75;
    if ((bName._width+bName._x+cap._width)>Stage.width) {
    xo = -2-cap._width;
    yo = -17;
    } else {
    xo = 2;
    yo = -17;
    hoverCaption.onEnterFrame = function() {
    cap._x = _xmouse+xo;
    cap._y = _ymouse+yo;
    cap._visible = true;
    } else {
    delete hoverCaption.onEnterFrame;
    cap._visible = false;
    Any help would be greatly appreciated. I know other related
    topics have been posted and I have read them, but nothing seems to
    help my problem. Sorry if this seems redundant but I would really
    appreciate any help or advice.
    Thanks

    Have you tried resetting the PMU?
    The PMU (Power Management Unit) controls trackpad function, so resetting it often helps when the trackpad isn't working (or isn't working right).

  • CSS mouseover image hover effect in iWeb?

    I've been trying to create an image hover effect when placing the mouse over an image or clicking on the image on my website made in iWeb. The only problem is that the HTML widget doesn't allow the image hover effect to only activate when the mouse is over the widget and not the image. If anyone know some simple code I could put into my website's HTML file, it would be great. It actually doesn't have to be a hover effect, the image just has to change on mouseover.
    My website is temporarily located here: http://dl.dropbox.com/u/19707357/Website/Chocoa/tavlen.html

    I referred you to that page to see if the effect was what you wanted! The examples use javascript.
    You originally asked for CSS and its better to use this since the browser only has to load one image instead of two.
    Here's an example of a rollover using CSS and a sprite...
    http://www.iwebformusicians.com/iweb-snippets/sprite.html

  • Can we live just we motion without after effects ( effects with particle)

    I am trying to make a really simple effects with particles in motion, i watched ANDY KRAMER'S "tutorial " ENERGY" related after effects and trying to do same thing with apple motion, I am new in motion graphic and approched it studying motion with mark spencer book and experiencing as many things as possibile.
    MY personal question is ( I know that many people has done same question) it really worth studiyng after effects? can we live just with motion? (as 3d app i am studiyng cinema 4d).
    Anyway right now Iam a bit frustrated because a simple twirl effects with particles coming from boundaries to go toward center point seem to me impossible, iit was so easely in after effects.

    Well if you haven't already realized it your never going to be completely happy with Motion. But I was never any happier with After Effects. Personally if you can get your hands on Cinema 4D DO. It's an awesome program. Combine that with Motion and you can do just about anything you want. Oh yea and I guess you've already noticed that when it comes to stability Motion is screwed. My dream is that someday (Like in the next release) They would combine C4D and Motion into almost 1 application. Kinda like FCP and Motion. You could do most of your modeling in C4D and then pull it into Motion to add all you video layers etc. But chances of that happening are pretty slim. But if the next release of FCS has as many updates as the last release it might be time to switch to Adobe lol

  • ACNS Rev. Proxy with CSS

    Hi,
    I hope that there is some that can help me on this.
    I have a WAE with ACNS and 2 CSS content switch in failover. My problem is that i can not get the ACNS to proxy the requests it do not cashe anything. The web site is displayed but without the caching of the pages. I can se that the ACNS is reciving the requests.
    Is there some who have this running ?
    I can not find any configs on cisco in this setup on ACNS v 5.5 with css only WCCP.
    pls. help
    / Soren

    To create a virtual SSL server and configure it for an SSL proxy list, use the ssl-server command. Use the no form of the ssl-server number command to delete the SSL server. For information on the other no forms of this command, see the commands in the following section.
    ssl-server number {association_type...|cipher...|handshake...
    |port...|session-cache...|tcp...|urlrewrite...|version...|vip address...}

  • I need to create a mouse hover effect on this map?

    I need to create a mouse hover effect on this map.
    Where the areas in (yellow or blue) will highlight or change color as the mouse lays on top. I have tried many things I dont seem to get it to work. Can someone help me?
    Link: http://sawpm.businesscatalyst.com/plan-de-ventas.html

    Hi there.
    You'll need to place something on top of it and play with opacity.
    - Imagine you have an inverted color version of your building A in a clipped-transparent PNG - it has to be the exact size, so it fitts nicely
    - Then you put that PNG on top of your map on the exact location of your building A
    - Convert it to a symbol
    - Inside the symbol:
      - Put a trigger at 0ms and 500ms with the following code: sym.stop();
      - Create an animation (with your building A image) with, say, 250ms, were it begins at 125ms with 0% opacity and at the end - 375ms - with 100% opacity. Put a label in the begining (250ms) saying mouseover and another at the end (350ms) saying mouseout
    - Click on the actions  of the building A image (the one with the inverted color or something similar) and choose "mouseover". write the following code: sym.play('mouseover');
    - Go to the actions again, choose "mouseout" and write the following code: sym.play('mouseout');
    That's basically it.
    pmfr

  • Trying to create Mouse over effect with more than one show image appearing in same cell

    Firstly this is the link to my test page: http://www.design39.co.uk/indexhope.html
    If you roll your cursor over the top left logo (the D&S) one it displays an image to the left. If you roll your cursor onto the next logo (Netnotts) it fades away again. Great. Exactly what I wanted and created in CSS (well done me as I don't normally do much with CSS but the new CS4 has very forced it).
    What I am trying to create is: When you roll onto the Netnotts logo, not only does the original image to the left disappear but a new relative one appears, this is to be for all the logos. In CSS I can only create it as far as I can. I have thought about using AP DIV tags to do it which would obviously work but to keep it in the right place, I would then have to align my whole website to the left instead of centered like it is and to be fair, that's not particularly pleasing to the eye as this is my own portfolio of work.
    I can do flash  to make 'pretty things' but have no idea about actionscript and java is way over my head but I am sure with some help I would be able to get it together as the that particular effect, although done in CSS, is running javascript I noticed.
    Many thanks in advance.

    A relative positioned layer? does this mean it knows how far to be away from the table as a pose to an absolute positioned layer which is lay 15px from the left? I need to be able to keep the positioning as its key, cant have the layer popping up in different places pending on the users browser size.
    I posted the question on a few forums and I got the following back: http://www.design39.co.uk/bla.html
    which is exactly what i wanted it to do but have no idea how to insert java script into my page; Further more, that was done in layers not table cells.
    Any ideas?

Maybe you are looking for

  • How do I transfer only part of my library to a new MBP?

    My son just got a new MBP for college. What is the best way to transfer *only his music and playlists* to his new MBP?

  • Audio tracks pop at start of song

    hi, im usiing g5 dual 2x2.3 ghz. 250gb hard drive, 2.5gb ram with logic 7.2.2 and a digi 002 rack. when i play back my song the audio tracks pop just before the song starts, i dont think its anything to to with the recording because i cut the tracks

  • Detective support: how is an external program called? (ex: truecrypt)

    Hello there, some of you may know, that if you double-click a mounted container within truecrypt, and have no nautilus installed, that you get an error message saying that nautilus isn't there. Browsing through the forums, I found someone who mention

  • New domain not working

    I have created a new domain (which contains one server), but none of the necessary files to actually run the new server are created in the new domain directory. (these would be the SSL certificate files, and the fileRealm.properties). This is specifi

  • Why did my messages turn blue instead of the original green?

    Finally got a iphone. I'm just learning it, but my messages use to be green for the outgoing text but they turned blue. How do I reset it.