Change text color depending on carousel image
-
Hi everyone,
I have an about text which is #0000ad and when there is a dark image displayed, I want it to change to #ffffff but I have been looking everywhere and could not find the solution, although changing the caption and number colors was possible with the alt-button class.
the page link is: http://franmonroy.com/carousel/
-
oh yea mmh :/ i think its not possible
-
I have also tried to get similar system working, but without luck. I'm using the carousel as a full-screen slider and would love to change colors of all texts when coming to a slide that uses the alternative buttons. I thought this either of these would work but no luck yet…
<script>
window.laytheme.on("newpageshown", function(){
if (jQuery("div").hasClass(".alt-buttons")) {
jQuery("._Menu").css("color", "#BA4823");
}
});
</script>OR
<script>
window.laytheme.on("newpageshown", function(){
if (jQuery(".alt-buttons")[0]){
jQuery("._Menu").css("color", "#BA4823");
}
});
</script>Any idea is this even possible or have I misunderstood something completely? Having an option for ie negative colored captions and numbers on certain slides would make the carousel add-on more flexible especially as there's already the option to use alternative buttons.
Nevertheless, I understand that I'm asking a way more than what the carousel add-on is proabably meant to be, so I understand if this is not something that will ever be possible...
-
hey its not possible sorry
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login