suna/backend/agent/workspace/script.js

18 lines
556 B
JavaScript
Raw Normal View History

2025-04-06 00:51:07 +08:00
$(document).ready(function(){
// Add smooth scrolling
$('a[href^="#"]').on('click', function(event) {
event.preventDefault();
var target = $(this.getAttribute('href'));
if( target.length ) {
$('html, body').stop().animate({
scrollTop: target.offset().top
}, 1000);
2025-04-06 00:38:55 +08:00
}
2025-04-06 00:51:07 +08:00
});
2025-04-06 00:38:55 +08:00
2025-04-06 00:51:07 +08:00
// Add parallax effect to hero images
$(window).scroll(function(){
var scrolled = $(window).scrollTop();
$('.hero').css('background-position-y', -(scrolled * 0.5));
});
2025-04-06 00:38:55 +08:00
});