Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have created a view with a few pictures and gradually moved into CSS-styling things in my theme. So far so good ...
Now I would like to to add css-style to a text field, also this no problem so far. But since it is the text field in the Slide I am hovering over with the mouse and that shows upp while the mouse moves over I would need some direction who the CSS-rule should be called. Is it possible to get help with this?
Thanks in advance !
Comments
Comment #1
marcoka CreditAttribution: marcoka commentedcan you specify this a little bit more. maybe some images. sample site?
Comment #2
bavarian CreditAttribution: bavarian commentedAgain ... everything seems to work fine in that View I have created.
In every SLIDE i have 1 picture and 1 word. what I want to accomplish is that the EXPANDED slide does show that word in a different way, compared to when slides are "collapsed".
The CSS-class of that DIV for that word (assigned by the Views - Configure Field option, is "detail". So if I try to style that word in another way ... lets say for the ACTIVE slider i would use ....
and that works fine.
But in my scenario it's not the text/word in the active slider i want to style differently, but the text/word in the slide, that the mouse is moving over, and that is expanding by the mouse movement over it, that word/text in that slide should be styled differently.
I have tried several options like
Hopefully it is possible to understand what I mean. Moving with mouse over the collapsed slide does expand that slide and would at the same time make the text in that slide change from ... for example red to blue. When moving to another slide, that expanded slide should collapse, and text color should move back from blue to red, and now the new expanding slide should experience the color shift from red to blue.
If you want me to show you the example e-anima, i can send you the URL in private .... let me know !
Comment #3
marcoka CreditAttribution: marcoka commentedcoul it be that you wan this #1058254: Javascript Location/Add Class To Active Slide
Comment #4
bavarian CreditAttribution: bavarian commentedThanks e-anima, but I am using the 7.x-1.0 version of this module ... so I don't think I should make use of that patch referred to.
Been tricking around a little bit with
and this is somehow what I am trying to accomplish. at least when I hover with mouse over a collapsed image ....
but contrary to the expanded picture (that stays expanded) when hovering over a collapsed image the CSS-properties disappear as soon as the mouse is moving away from the image hovered over. that makes me guess that it takes work in the javascript-code ....
Comment #5
marcoka CreditAttribution: marcoka commenteddoesnt it say for 7.x-1.0 ...
yes it work in the js file
Comment #6
bavarian CreditAttribution: bavarian commentedNOW we are talking. I am on the way to accomplish the things I thought of. If feedback is desired I will report here when finished ....
THANK YOU !
Comment #7
dsoundmn CreditAttribution: dsoundmn commentedclosing to work in #1058254: Javascript Location/Add Class To Active Slide