jQueryのプラグインprogressbar.jsを使用しています。
IE11のみ動作せず、解決策が分かりませんでした。
ご教示頂けないでしょうか。
jQuery
1$(".overlay_btn").click(function(){ 2 $('.overlay').addClass('is-open'); 3 $('html').addClass('overflow'); 4 var bar = new ProgressBar.Line(container, { 5 strokeWidth: 4, 6 easing: 'easeInOut', 7 duration: 1400, 8 color: '#3E8FE6', 9 trailColor: '#eee', 10 trailWidth: 1, 11 svgStyle: {width: '100%', height: '100%'}, 12 text: { 13 style: { 14 // Text color. 15 // Default: same as stroke color (options.color) 16 color: '#999', 17 textAlign:'center', 18 padding: 0, 19 margin: 0, 20 transform: null 21 }, 22 autoStyleContainer: false 23 }, 24 from: {color: '#3E8FE6'}, 25 to: {color: '#ED6A5A'}, 26 step: (state, bar) => { 27 bar.setText(Math.round(bar.value() * 100) + '%'); 28 } 29});
IE11上でエラーと表示されている箇所↓(上記下から4行目)
step: (state, bar) => {
https://bagelee.com/design/javascript/create_progress_bars_with_progressbarjs/
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/11/27 09:45
2018/11/27 09:51