-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.js
83 lines (66 loc) · 1.95 KB
/
scripts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
$('#empresa').hide();
$('#maisinfo').hide();
//ativa popover
$(function(){
$('[data-toggle="popover"]').popover()
});
/* <button class="btn btn-sm" data-toggle="popover" data-placement="top"
title="Spotily" data-content="Imagem do aplicativo">Ajuda</button> */
$('#menusobre').click( function(){
$('html, body').animate({
scrollTop: $('#estilos').offset().top
}, 500, 'linear');
});
$('#botao-topo').click( function(){
$('html, body').animate({
scrollTop: $('#top').offset().top
}, 500, 'linear');
});
$('#carrossel').carousel({
pause: false,
interval: 5000
});
$(document).ready(function(){
$(".efeito-imagem").mouseenter(function(){
$(".efeito-imagem").animate({
//left: '250px',
opacity: '0.5',
//height: '150px',
//width: '150px',
});
});
});
$(document).ready(function(){
$(".efeito-imagem").mouseout(function(){
$(".efeito-imagem").animate({
//left: '250px',
opacity: '1',
//height: '150px',
//width: '150px',
});
});
});
/* cards
$('#opinioes').mouseenter(
function(){
//$('.card').show(500);
$('.card').fadeIn(1000);
//$('.card').fadeToggle(1000);
});
*/
$(document).ready(function() {
/* Toda vez que a janela é rolada ...*/
$(window).scroll( function(){
/* Verifique a localização de cada elemento desejado */
$('.card').each( function(i){
/* parte inferior do objeto */
var bottom_of_object = $(this).position().top + $(this).outerHeight();
/* parte inferior da janela */
var bottom_of_window = $(window).scrollTop() + $(window).height();
/* Se o objeto estiver completamente visível na janela, apague-o */
if( bottom_of_window > bottom_of_object ){
$(this).animate({'opacity':'1'},1000);
}
});
});
});