提交 8a46ff73 编写于 作者: K Kamran Ahmed

Update animation speed

上级 5e596cb6
......@@ -22,7 +22,7 @@ export const CLASS_PREV_STEP_BTN = 'driver-prev-btn';
export const CLASS_BTN_DISABLED = 'driver-disabled';
// It must match the one set in the animations in CSS file
export const ANIMATION_DURATION_MS = 200;
export const ANIMATION_DURATION_MS = 400;
// language=HTML
export const POPOVER_HTML = `
......
......@@ -231,7 +231,7 @@ export default class Element {
const showAtPosition = this.getCalculatedPosition();
// For first highlight, show it immediately because there won't be any animation
const animationDuration = !this.overlay.lastHighlightedElement ? 0 : ANIMATION_DURATION_MS * 2;
const animationDuration = !this.overlay.lastHighlightedElement ? 0 : ANIMATION_DURATION_MS;
this.animationTimeout = this.window.setTimeout(() => {
this.popover.show(showAtPosition);
......
......@@ -120,11 +120,11 @@ div#driver-page-overlay {
z-index: 100002 !important;
// If you update this duration, make sure to update `ANIMATION_DURATION_MS` constant
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
-ms-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
-webkit-transition: all 0.4s;
-moz-transition: all 0.4s;
-ms-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
}
div#driver-highlighted-element-stage {
......@@ -138,11 +138,11 @@ div#driver-highlighted-element-stage {
display: none;
// If you update this duration, make sure to update `ANIMATION_DURATION_MS` constant
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
-ms-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
-webkit-transition: all 0.4s;
-moz-transition: all 0.4s;
-ms-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
}
.driver-highlighted-element {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册