progress on new website

This commit is contained in:
2023-05-19 07:53:09 +02:00
parent f659c53a64
commit d856df8e1b
7 changed files with 116 additions and 19 deletions

View File

@@ -52,13 +52,13 @@
$( '.inactive' ).mouseenter( function () {
let obj = $( this ).attr( 'id' );
if ( obj === 'home' ) {
$( '#nav-menu' ).css( 'background-position', `${0 - offset}px` );
$( '#nav-menu' ).css( 'background-position', `${0 + offset}px` );
} else if ( obj == 'order' ) {
$( '#nav-menu' ).css( 'background-position', `${200 - offset}px` );
$( '#nav-menu' ).css( 'background-position', `${200 + offset}px` );
} else if ( obj == 'contact' ) {
$( '#nav-menu' ).css( 'background-position', `${400 - offset}px` );
$( '#nav-menu' ).css( 'background-position', `${400 + offset}px` );
} else if ( obj == 'examples' ) {
$( '#nav-menu' ).css( 'background-position', `${600 - offset}px` );
$( '#nav-menu' ).css( 'background-position', `${600 + offset}px` );
}
} )
$( '.inactive' ).mouseleave ( function () {