PageSourceSearch

https://www.weset-project.eu/wp-content/themes/enterprise-pro/js/animation.js

js weset-project.eu collected 2026-10-07 03:25:58 UTC 1,307 bytes, 60 lines download raw bytes

1// Fadeup effect para los elememtos con clase "fadeup-effect"
2(function( $ ) {
3
4	$(document).ready(function() {
5		// Run 0.25 seconds after document ready for any instances viewable on load
6		setTimeout(function() {
7			animateObject();
8		}, 250);
9	});
10
11	$(window).scroll(function() {
12		// Run on scroll
13		animateObject();
14	});
15
16	function animateObject() {
17		// Define object via class
18		var object = $( '.fadeup-effect' );
19
20		// Loop through each object in the array
21		$.each(object, function() {
22
23			var windowHeight = $(window).height(),
24				offset = $(this).offset().top,
25				top = offset - $(document).scrollTop(),
26				percent = Math.floor(top / windowHeight * 100);
27
28
29			if (percent < 85) {
30				$(this).addClass( 'fadeInUp' );
31			}
32		});
33	}
34
35})( jQuery );
36
37// Scroll suave para los anchor #
38jQuery(function($) {
39
40	$( 'a[href*=#]:not([href=#])' ).click(function() {
41
42		if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
43
44			var target = $(this.hash);
45			target = target.length ? target : $( '[name=' + this.hash.slice(1) + ']' );
46
47			if (target.length) {
48
49				$( 'html,body' ).animate({
50					scrollTop: target.offset().top
51				}, 750);
52
53				return false;
54
55			}
56		}
57
58	});
59
60});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.