New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to add tooltips inside slides? #176
Comments
What do you mean? Of course you can. You can do whatever you want :) |
How I can create?[?] 2014/1/18 alvarotrigo notifications@github.com
Cordialement GSM : 0601 05 39 39Le contenu du présent courriel est privilégié, confidentiel et soumis à des |
If you want to know how to create tooltips or any other thing not related with the plugin, you can try to ask here: http://stackoverflow.com/ This forum is to treat topics directly related with the plugin. |
I rephrase my question, Is it also possible for the bullet navigation to use tooltips like in "main menu"? but thanks, i will try on with tooltips plugin. |
I guess with "main menu" you are making reference to the vertical navigation bullets. Right? I'm afraid it is not possible right now. |
It should be easy to use the title attribute of each section, or even the value of an HTML5 data attribute like data-tooltip. |
We would be interested if somebody has already a solution for tooltips for the slider navigation. Thank you. |
This is how I did it : On each section, I added an HTML5 attribute like <div class="section" data-navigation="home|Home">
...
</div> My attribute is written like this, because I wanted the anchors to be dynamic as well. SO the first part before the pipe is the anchor (for the URL hash), and after it's my tooltip text. Then, right before implementing the plugin, in JavaScript, I used a loop on each section to retrieve the informations I want. // two variables to store anchors and tooltips
var anchors = [],
tooltips = [];
$('.section').each(function() {
// retrieve the attribute
var navigation = $(this).data('navigation');
if (!navigation)
return;
// the attribute data-navigation is built like : anchor|tooltip
var parts = navigation.split('|');
anchors.push(parts[0]);
tooltips.push(parts[1]);
}); and that's it ! You can name the attribute as you wish. You can skip the anchor part and use the attribute only for the tooltip, make just some arrangements. Hope it helps. |
Hey Alvaro, How can I make each slide within a section a different color? Thanks! |
@jferdizzle with css. Nothing to do with fullPage.js. |
Gotcha, thanks for the quick response. Love your work! |
@alvarotrigo I just changed the code and have it working. |
OK so, to solve this issue
Then open the jquery.fullPage.css and at the bottom paste this: Now you are good to go and you can use the tooltips on the slides by setting slideTooltips in the options. Per example: slideTooltips: ["slide 1", "slide 2", "slide 3", "slide 4"] |
@Bart-Holland I followed your instructions exactly to implement slide tooltips but it doesn't work! Could you please help me to get this working? I really appreciate any suggestions! |
I made a for in which I added these things: If you would be so kind to test it @tschortsch22 |
Thank you, it works like a charm! :) What if I use two sliders on my site? Is there a way to set tooltips separately? |
Not sure, the only way is to try this out by creating a second object in a different container. |
I created a second object in another section and the slides showed the same tooltips unsurprisingly.. Is there any approach to get different tooltips for multiple sliders? Guess this is getting quite difficult, right? |
What you might want to do is place this in a JSFiddle and send me the link. This way I can see what you do and help finding a solution. |
I created this Fiddle with 3 sliders to illustrate my issue. |
sorry for the late response, I see the issue.
This might not work immediatly, we need to change the fullpage.js as well to fix this. |
Thanks for your reply, using an array would be awesome! Any idea how to change the fullpage.js? |
Yeah I have an idea... |
Did you guys ever find a solution to get the multiple slides to show different tooltips? I tried working with your recommendation above. But it kills FullPage.
Is this resolved in any of the FullPage dev versions? |
Nop. |
Is it possible to add tooltips inside slides? (as the option
navigationTooltips
but for slides rather than for sections)The text was updated successfully, but these errors were encountered: