WebSite X5Help Center

 
Fabio P.
Fabio P.
User

Aggiungere effetti sul menu  it

Author: Fabio P.
Visited 1472, Followers 1, Shared 0  

Buongiorno a tutti,

sto tentando invano di aggiungere degli effetti sul menu con il passaggio del mouse.

Il programma mi consente come onmouseover solo di cambiare colore del testo o stile del carattere.

Vorrei realizzare una cosa del genere: https://pearljam.com/

Come posso interagire sul codice del menu?

Grazie in anticipo per l'aiuto.

Fabio

Posted on the
23 ANSWERS - 5 USEFUL - 1 CORRECT
Mirko Boschetti
Mirko Boschetti
Moderator

da programma non lo fai....cerca in rete:

animated menu CSS

li avevo provati una volta anche io, ma poi devi inserire tutto a mano, e con il responsive non sò cosa viene fuori... 

Read more
Posted on the from Mirko Boschetti
Fabio P.
Fabio P.
User
Author
Mirko Boschetti
da programma non lo fai....cerca in rete: animated menu CSS li avevo provati una volta anche io, ma poi devi inserire tutto a mano, e con il responsive non sò cosa viene fuori... 

ciò che temevo :) Grazie comunque!

Read more
Posted on the from Fabio P.
Giancarlo B.
Giancarlo B.
User
Best User of the month IT

Fabio qualcosa di carino l'ho trovato quì... e vanno anche su wesite ... in pò di pratica e pazienza.. wink

Read more
Posted on the from Giancarlo B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... in alternativa, usando immagini GifAnim ...sarebbe semplicissimo con l'effetto >> mouseover  ...

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Fabio P.
Fabio P.
User
Author
 ‪ KolAsim ‪ ‪
... in alternativa, usando immagini GifAnim ...sarebbe semplicissimo con l'effetto >> mouseover  ... .

Potrei nascondere il menu e crearmi in alto nell'header le immagini con effetto mouseover; il problema è che non potrei utilizzare la funzione del menu visibile con lo scroll della pagina :(

Read more
Posted on the from Fabio P.
Giancarlo B.
Giancarlo B.
User
Best User of the month IT

Fabio, 

scegli l'effetto che ti serve, sostituisci tutte le classi .effectX con #imMnMn .imMnMnFirstBg

il codice scelto lo metti fra i due tag <style> ...... </style>

Ciao Giancarlo.

Read more
Posted on the from Giancarlo B.
Fabio P.
Fabio P.
User
Author
Giancarlo B.
Fabio,  scegli l'effetto che ti serve, sostituisci tutte le classi .effectX con #imMnMn .imMnMnFirstBg il codice scelto lo metti fra i due tag <style> ...... </style> Ciao Giancarlo.

Ci sto ancora lavorando, ma grazie a te piano piano sto facendo progressi!


http://www.unistaraforni.it/it/2017ws/

Grazie!

Read more
Posted on the from Fabio P.
Claudio D.
Claudio D.
Moderator

@Fabio ... ...ricordati di verificare le versione del menu per il mobile ...

Read more
Posted on the from Claudio D.
Fabio P.
Fabio P.
User
Author
Giancarlo B.
Fabio,  scegli l'effetto che ti serve, sostituisci tutte le classi .effectX con #imMnMn .imMnMnFirstBg il codice scelto lo metti fra i due tag <style> ...... </style> Ciao Giancarlo.

dovrei esserci quasi arrivato! ho solo un piccolo problema ora...

http://www.unistaraforni.it/it/2017ws/home.html

sul menu funziona l'effetto, ma andando sul tasto non appare la scritta della voce del menu, nella prova che ho fatto nel content della pagina funziona invece:

    <div class="#imMnMn">
    <a href="http://www.unistaraforni.it/it/2017ws/contatti.php" class="effect imMnMnFirstBg" data-title="HOME">home</a>
    </div>

Ho capito che se riuscissi a modificare il data-title direttamente sul codice del menu, forse funzionerebbe alla perfezione...

c'è la possibilità di integrare o richiamare il codice nella sezione html direttamente all'interno della sezione menu?

Grazie,

Fabio

Read more
Posted on the from Fabio P.
Claudio D.
Claudio D.
Moderator

...se vuoi che ti rispondano gli utenti dovresti togliere il "corretto" ...

Read more
Posted on the from Claudio D.
Fabio P.
Fabio P.
User
Author

grazie :)

Read more
Posted on the from Fabio P.
Giancarlo B.
Giancarlo B.
User
Best User of the month IT

ho provato.. e la soluzione potrebbe essere aggiungere una mediaquerry e funziona...

Fabio volevo dirti di abbassare il valore del top ... ma avevi chiuso il post... wink 

Read more
Posted on the from Giancarlo B.
Fabio P.
Fabio P.
User
Author
Giancarlo B.
ho provato.. e la soluzione potrebbe essere aggiungere una mediaquerry e funziona... Fabio volevo dirti di abbassare il valore del top ... ma avevi chiuso il post...  

Valore del top abbassato ;) Grazie

Non so cosa sia una mediaquerry :( ho giusto qualche base del programmatore.

Hai possibilità di mandarmi qualche esempio su cui poter lavorare?

Read more
Posted on the from Fabio P.
Giancarlo B.
Giancarlo B.
User
Best User of the month IT

io ho provato così e funziona il valore in grassetto lo puoi variare in base alle tue esigenze, quando compare l'hamburger menù sul tuo sito:

@media(min-width: 719px){

#imMnMn .imMnMnFirstBg {
color:#0F659C;
-ms-transition: all linear 0.2s;

..........prosegui con il tuo script effetto

}

ok prova... fammi sapere, ciao.

Read more
Posted on the from Giancarlo B.
Fabio P.
Fabio P.
User
Author
Giancarlo B.
io ho provato così e funziona il valore in grassetto lo puoi variare in base alle tue esigenze, quando compare l'hamburger menù sul tuo sito: @media(min-width: 719px){ #imMnMn .imMnMnFirstBg { color:#0F659C; -ms-transition: all linear 0.2s; ..........prosegui con il tuo script effetto } ok prova... fammi sapere, ciao.

Questo è il codice completo che ho messo nella sezione esperto della voce STATISTICHE, SEO e CODICE:

<style>
@media(min-width: 719px){
#imMnMn .imMnMnFirstBg {
color:#0F659C;
-ms-transition: all linear 0.2s;
}
* {
 -webkit-box-sizing:border-box;
 -moz-box-sizing:border-box;
 box-sizing:border-box;
 }
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
 margin: 0;
 padding: 0;
 border: 0;
 font-size: 100%;
 font: inherit;
 vertical-align: baseline;
 font-family: Open Sans;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
 display: inline;
}
/* Effects */ 
.effect {
 position:relative;
 display:inline-block;
 text-decoration:none;
 padding:10px;
 }
.imMnMnFirstBg {
 color:#646464;
 -ms-transition: all linear 0.2s;
 -webkit-transition: all linear 0.2s;
 -moz-transition: all linear 0.2s;
 transition: all linear 0.2s;
 }
 
.imMnMnFirstBg:hover {
 -ms-transition: all linear 0.2s;
 -webkit-transition: all linear 0.2s;
 -moz-transition: all linear 0.2s;
 transition: all linear 0.2s;
 color:transparent;
 }
 
.imMnMnFirstBg:after {
 padding:15px 5px;
 background:#fff;
 color:#fff;
 opacity:0;
 content:attr(data-title);
 position:absolute;
 left:0;
 top:10px;
 width:100%;
 
 -ms-transform:scale(1.3,1.3);
 -webkit-transform:scale(1.3,1.3);
 -moz-transform:scale(1.3,1.3);
 transform:scale(1.3,1.3);
 
 -ms-transform:rotateX(-120deg);
 -webkit-transform: rotateX(-120deg);
 -moz-transform: rotateX(-120deg);
 transform: rotateX(-120deg);
 
 -ms-transition: all linear 0.2s;
 -webkit-transition: all linear 0.2s;
 -moz-transition: all linear 0.2s;
 transition: all linear 0.2s;
 }
 
/* ---------- colore del background del bottone su passaggio --------- */.imMnMnFirstBg:hover:after {
 opacity:1;
 background:#CA581A;
 font-color: #000000
 
 -ms-transform:scale(1,1);
 -moz-transform:scale(1,1);
 -webkit-transform:scale(1,1);
 transform:scale(1,1);
 
 -ms-transform: rotateX(0deg);
 -webkit-transform: rotateX(0deg);
 -moz-transform: rotateX(0deg);
 transform: rotateX(0deg);
 
 -ms-transition: all linear 0.2s;
 -webkit-transition: all linear 0.2s;
 -moz-transition: all linear 0.2s;
 transition: all linear 0.2s;
 }

/*
</style>

il Menù hamburger sotto la risoluzione 720 funziona, per ora ha problemi con il codice ma poi ci lavorerò...purtroppo le scritte sopra l'effetto continuano a non venire visualizzate :(

Read more
Posted on the from Fabio P.
Giancarlo B.
Giancarlo B.
User
Best User of the month IT

non ho verificato...  ma in teoria devi mettere in codice  dentro 

@media(min-width: 719px){ .....codice........ }

non ho verificato se manca l'ultima di chiusuta.. vedi tu.

Ciao.

Read more
Posted on the from Giancarlo B.
Fabio P.
Fabio P.
User
Author
Giancarlo B.
non ho verificato...  ma in teoria devi mettere in codice  dentro  @media(min-width: 719px){ .....codice........ } non ho verificato se manca l'ultima di chiusuta.. vedi tu. Ciao.

Effettivamente nel codice che ti ho incollato mancava una graffa di chiusura, purtroppo nonostante tutto non funziona,

il pezzo di codice che mi da problemi è questo:

.imMnMnFirstBg:after {
 padding:15px 5px;
 background:#fff;
 color:#fff;
 opacity:0;
 content:attr(data-title);
 position:absolute;
 left:0;
 top:10px;
 width:100%;

content:attr(data-title); vuole che si imposti da un altra parte il valore data title,

che nell'esempio sotto la homepage ho inserito così


    <div class="item alcenter">
        <a href="#" class="effect effect6" data-title="Sono un link">Sono un link</a>
    </div>

Read more
Posted on the from Fabio P.
Giancarlo B.
Giancarlo B.
User
Best User of the month IT

Fabio questo codice mi funziona ora non riesco a verificare altro.. vedi se ti è utile:

<style>

@media(min-width: 719px){
#imMnMn .imMnMnFirstBg {
color:#0F659C;
-ms-transition: all linear 0.2s;
-webkit-transition: all linear 0.2s;
-moz-transition: all linear 0.2s;
transition: all linear 0.2s;
}
#imMnMn .imMnMnFirstBg:hover {
-ms-transition: all linear 0.2s;
-webkit-transition: all linear 0.2s;
-moz-transition: all linear 0.2s;
transition: all linear 0.2s;
color:transparent;
}

#imMnMn .imMnMnFirstBg:after {
padding:15px 5px;
background:#fff;
color:#fff;
opacity:0;
content:attr(data-title);
position:absolute;
left:0;
top:0px;
width:100%;

-ms-transform:scale(1.3,1.3);
-webkit-transform:scale(1.3,1.3);
-moz-transform:scale(1.3,1.3);
transform:scale(1.3,1.3);

-ms-transition: all linear 0.2s;
-webkit-transition: all linear 0.2s;
-moz-transition: all linear 0.2s;
transition: all linear 0.2s;
}
#imMnMn .imMnMnFirstBg:hover:after {
opacity:1;
background:#0F659C;

-ms-transform:scale(1,1);
-moz-transform:scale(1,1);
-webkit-transform:scale(1,1);
transform:scale(1,1);

-ms-transition: all linear 0.2s;
-webkit-transition: all linear 0.2s;
-moz-transition: all linear 0.2s;
transition: all linear 0.2s;
}
}

</style>

ciao.

Read more
Posted on the from Giancarlo B.
Fabio P.
Fabio P.
User
Author
Giancarlo B.
Fabio questo codice mi funziona ora non riesco a verificare altro.. vedi se ti è utile: <style> @media(min-width: 719px){ #imMnMn .imMnMnFirstBg { color:#0F659C; -ms-transition: all linear 0.2s; -webkit-transition: all linear 0.2s; -moz-transition: all linear 0.2s; transition: all linear 0.2s; } #imMnMn .imMnMnFirstBg:hover { -ms-transition: all linear 0.2s; -webkit-transition: all linear 0.2s; -moz-transition: all linear 0.2s; transition: all linear 0.2s; color:transparent; } #imMnMn .imMnMnFirstBg:after { padding:15px 5px; background:#fff; color:#fff; opacity:0; content:attr(data-title); position:absolute; left:0; top:0px; width:100%; -ms-transform:scale(1.3,1.3); -webkit-transform:scale(1.3,1.3); -moz-transform:scale(1.3,1.3); transform:scale(1.3,1.3); -ms-transition: all linear 0.2s; -webkit-transition: all linear 0.2s; -moz-transition: all linear 0.2s; transition: all linear 0.2s; } #imMnMn .imMnMnFirstBg:hover:after { opacity:1; background:#0F659C; -ms-transform:scale(1,1); -moz-transform:scale(1,1); -webkit-transform:scale(1,1); transform:scale(1,1); -ms-transition: all linear 0.2s; -webkit-transition: all linear 0.2s; -moz-transition: all linear 0.2s; transition: all linear 0.2s; } } </style> ciao.

Sicuramente sbaglio il posto in cui applicare il codice....il risultato è sempre questo su passaggio

Read more
Posted on the from Fabio P.
Giancarlo B.
Giancarlo B.
User
Best User of the month IT

Ciao Fabio,
purtroppo ieri non sono riuscito a fare prove su website, l'unico test che ho prodotto è
questo editando la index di un mio template, ma credo (e spero) si possa fare di meglio, intanto
come vedi almeno su questo test l'hamburger menù si comporta correttamente.

http://giancarlob.altervista.org/adventure_team/index_menu_test.html

Ciao giancarlo.

Read more
Posted on the from Giancarlo B.
Fabio P.
Fabio P.
User
Author
Giancarlo B.
Ciao Fabio, purtroppo ieri non sono riuscito a fare prove su website, l'unico test che ho prodotto è questo editando la index di un mio template, ma credo (e spero) si possa fare di meglio, intanto come vedi almeno su questo test l'hamburger menù si comporta correttamente. http://giancarlob.altervista.org/adventure_team/index_menu_test.html Ciao giancarlo.

copiando direttamente il tuo codice è andato!! :)
Grazieeeee

Read more
Posted on the from Fabio P.