Cufon Hover & Change Font Syntax

Can someone help me rewrite this syntax below so that everything is correct.

I want the font to be replaced with my font while it accepts: hover, so my button will change when I hover over it.

 Cufon('button', {
    fontFamily: 'Disgrunged A',
    hover: {
        color: '#ed1c24'
    }
 });
+3
source share
2 answers

You can try adding a button to the hoverables list.

Cufon('button', {
    fontFamily: 'Disgrunged A',
    hover: {
        color: '#ed1c24'
    },
    hoverables: { button:true }
 });

Link: API Cufon

hoverables
Determines which elements: using hover. By default, links just like IE6 can't do anything else.
example : {tag: true, ..}
default : {a: true}

+3
source

cufon, , :

 Cufon.replace('button:hover', {
    fontFamily: 'Disgrunged A'
 });
0

Source: https://habr.com/ru/post/1743137/


All Articles