effects to a radial gradient

Posted on 2012-08-22
Last Modified: 2012-08-26
I have created this radial gradient in my CSS:
      min-height: 100%;
      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#6600ff00', GradientType=0 ); /* IE6-9 fallback on horizontal gradient */
      background: -moz-radial-gradient(180px 180px, circle closest-corner, rgba(0,0,0,0) 2%, rgba(0,255,0,.2) 50%, rgba(0,255,0,.3) 70%, rgba(0,255,0,.4) 100%); /* FF3.6+ */
      background: -webkit-radial-gradient(180px 180px, circle closest-corner, rgba(0,0,0,0) 2%,rgba(0,255,0,.2) 50%,rgba(0,255,0,.3) 70%,rgba(0,255,0,.4) 100%); /* Chrome10+,Safari5.1+ */

It works in Chrome & Firefox, Not in IE (which is ok. i am fine with the above)

If you actually see this, it appears as a sun in the top left corner of the screen, and the rest of the screen is a light green.

Now I want to add a new effect (using javascript or whatever else is possible):

I want this sun to appear at bottom left, and rise slowly to the top. A linear rise is ok, but if you can do a parabolic rise, i would be overjoyed.

Question by:RTKHOT
    LVL 25

    Accepted Solution

    Put the sun in a separate div, and place it at the bottom of the page. Then animate the y position exponentially.

    view source for the script
    (you should of course adjust your gradient to your liking)

    Author Comment

    thanks. i will check it out tomorrow and award the points.

    appreciate the early reply
    LVL 25

    Expert Comment

    by:Kyle Hamilton

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
    In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now