5
I’d like to get an idea how I can make a kind of SLIDE now with user interaction.
I can’t find anything on the Internet to base on, and I can’t figure out how to do that!
In the code I have a class slide1
what makes onclick
and the result appears on the screen.
$(document).ready(function () {
$('.logo').on('click',function(){
/*alert('oi'); */
$('.mostraBox').css('display','inline')
});
});
.slide {
position: relative;
width: 650px;
height: 500px;
margin: 0 auto;
}
.slide img {
position: absolute;
}
.logo {
width: 130px;
height: 100px;
margin-top:150px;
margin-left: 100px;
border: 5px solid #FF0000;
position: absolute;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="slide">
<div class="slide1">
<img src="http://s2.glbimg.com/NpGhQXJdJdvabAJZK61Tj6mRYQo=/0x0:694x391/695x392/s.glbimg.com/po/tt2/f/original/2015/04/20/windows-10-logo.jpg" />
<div class="logo"></div>
<div class="mostraBox" style="display:none;width:100px;height: 20px; float:right; position: absolute;">Bem vindo ao Windows!</div>
</div>
</div>
I’m trying to make another class slide2
and make another interaction with the user.
Now to get to the slide2
I need to have a forward button.
I searched everything and I could not resolve my doubt.
http://www.jquery-steps.com
– Tobias Mesquita
Your question was not very clear, you can clarify?
– Eduardo Breno
Of course! Please take a look at the above code. it opens a windows image, and has an onclick function on the windows screen. After clicking will learn the text "Welcome to windows". My doubt is that I need to put a button that jquery recognizes that the next thing it will pass would be the slide2 class.
– Joao Marcos
To be even clearer. When I finish the animation above, I have to have a button to show another animation. this one, for example, https://jsfiddle.net/jctpvs2d/ - which is nothing more than the same first.!
– Joao Marcos
Come on, if I understand, when the animation is completed that show the text "welcome", you want to appear a button, in the red square q is the slide2, right?
– Eduardo Breno