Forums

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

Home Forums CSS -webkit-text-fill-color: transparent Making text Dissapear

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #167712
    ROODAY
    Participant

    So I followed the tutorial here.

    I modified it a bit so that there was no animation, and I used jquery to check whether the browser was webkit or not, and depending on that, add the class for making the knockout letters.

    if ($.browser.webkit) {
        $("#rooday h1").addClass('webkit');
    } else {
        $("#rooday h1").removeClass('webkit');
    }
    

    The jquery worked, however the text was invisible on the website. Using inspect element, I found out that the text re-appeared after disabling -webkit-text-fill-color: transparent

    Is this a known issue that knockout only works when set at the load of the file? Any help is appreciated! An if you want the code, here is a JSfiddle. (I removed some parts of it to reduce the amount of errors in the console, and commented out a part of the JS that wouldn’t work through JSfiddle, but trust me that part works)

    The main issue here is that the part at the top that is the strip of space background should be text that says “ROODAY” with knockout, but for some reason when I do that through adding a class -webkit-text-fill-color: transparent makes it invisible, but not when I add this CSS to the element’s specific CSS at the start.

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.