Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How do I make this simple effect with CSS3?

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #46420
    Magikarp
    Participant

    http://d36xtkk24g8jdx.cloudfront.net/bluebar/0d8ce52/images/homepage/content-background.png

    I have everything except the box-shadow doing what I want. It won’t fade like the image does.

    Is this effect even possible with CSS3?

    #142892
    sadunaresh
    Participant

    hope this is possible with css3 gradient…

    background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 25%, rgba(35,35,35,1) 100%, rgba(214,14,154,1) 100%, rgba(214,14,154,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(25%,rgba(255,255,255,1)), color-stop(100%,rgba(35,35,35,1)), color-stop(100%,rgba(214,14,154,1)), color-stop(100%,rgba(214,14,154,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 25%,rgba(35,35,35,1) 100%,rgba(214,14,154,1) 100%,rgba(214,14,154,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 25%,rgba(35,35,35,1) 100%,rgba(214,14,154,1) 100%,rgba(214,14,154,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 25%,rgba(35,35,35,1) 100%,rgba(214,14,154,1) 100%,rgba(214,14,154,1) 100%); /* IE10+ */
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 25%,rgba(35,35,35,1) 100%,rgba(214,14,154,1) 100%,rgba(214,14,154,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=’#ffffff’, endColorstr=’#d60e9a’,GradientType=0 );

    #142893
    sadunaresh
    Participant

    Im sorry, I should learn formatting the code here…. the above code is generated by photoshop like css3 gradient generator at

    http://www.colorzilla.com/gradient-editor/

    #142895
    asiek
    Participant

    @sadunaresh use _<pre><code></code></pre>_

    #142898
    sadunaresh
    Participant

    @Keilowe.. thanks for the tip.. :)

    #142919
    Paulie_D
    Member

    >Is this effect even possible with CSS3?

    As a box-shadow, I don’t think so…as I’m **pretty** sure you can’t use a gradient as a color for those. I suspect that one could fake it with a couple of pseudo elements and box-shadow but that would probably be just as much work as….

    … background gradient as described above would be the best option

    #142922
    Kuzyo
    Participant
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.