Chart.js canvas resize

前端 未结 13 1150
北海茫月
北海茫月 2020-11-30 23:39

In (Android WebView HTML5 canvas error) i posted a question regarding plotting graphs using Graph.js library. The problem i have now is that if i call the function to plot t

13条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 23:46

    I tried to Resize Canvas using jQuery but it din't work well. I think CSS3 is the best option you can try on, if you want on hover zooming at certain level.

    Following hover option from other codepan link:

    .style_prevu_kit:hover{
        z-index: 2;
        -webkit-transition: all 200ms ease-in;
        -webkit-transform: scale(1.5);
        -ms-transition: all 200ms ease-in;
        -ms-transform: scale(1.5);   
        -moz-transition: all 200ms ease-in;
        -moz-transform: scale(1.5);
        transition: all 200ms ease-in;
        transform: scale(1.5);
    }
    

    Follow my codepan link:

    https://codepen.io/hitman0775/pen/XZZzqN

提交回复
热议问题