progress on new website
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user