I am currently using fancybox to showcase some of my website links with opaque backgrounds as requested by the designer. I have successfully customized the background color to meet the requirements.
However, I am now facing a new question: is it possible to have different background colors for different links?
For instance, can I set the background behind the box triggered by the 'shows' link to be grey, while the 'music' and 'video' links have a salmon pink background?
Below is the script I am using:
$(".fancybox").fancybox({
helpers: {
overlay: {
css: {
'background': 'rgba(246, 150, 121, 1)'
}
}
}
});
And here are the links I am working with:
<li><a href="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/users/7725554&color=a8a8a8&auto_play=false&hide_related=false&show_artwork=true" class="fancybox fancybox.iframe"><u>Music</u></a></li>
<li><a href="shows.html" class="fancybox fancybox.iframe"><u>Shows</u></a></li>
<li><a href="http://player.vimeo.com/video/65943302" class="fancybox fancybox.iframe"><u>Golden Hour</u></a></li>
Do you have any suggestions? Is it possible to implement an if/else loop in the script to achieve this customization?
Thank you in advance for your assistance!