I am trying to change images while doing mouseover / mouseleave using CSS or SASS. However, to accomplish this, I can always:
header = panel.getHeader (). getEl (); and then do the following:
header.on('mouseover', function (e) {
.......
.......
}, me);
header.on('mouseleave', function (e) {
........
}, me);
However, I am trying to accomplish the same functionality using CSS or SASS .
Basically:
a) All images should be displayed by default when loading the accordion. ( Image 1 should be displayed for panel 1).
b) , 2 1 ( 1 - ).
c) 2 mouseleave 1
( 1).
CSS, , mouseover/mouseleave, , .
// Show IMAGE 1 by default
.x-panel-header-custom1{
url('http://www.iconhot.com/icon/png/brush-intense-messenger/256/msn-web-
2.png');
}
// SHOW IMAGE 2 when expanded or onmouseover
.x-panel-header-custom1:hover{
background: red;
background-image:
url('https://image.flaticon.com/icons/png/128/12/12195.png');
}
- , ?
FIDDLE
: Font awesome ,
, , . !