diff --git a/src/components/IconSelect/index.js b/src/components/IconSelect/index.js index 7fd57bf..6d0f558 100644 --- a/src/components/IconSelect/index.js +++ b/src/components/IconSelect/index.js @@ -2,15 +2,26 @@ import React from 'react' import PropTypes from 'prop-types' import styles from './styles.module.scss' -const IconSelect = ({ show, x }) => ( - { + let styleObj = { + transform: `translateX(calc(${x}px - 50%))` + + } + // is window is on resize, stop animation + if (isResize) { + styleObj['transition'] = 'auto' + styleObj['-webkit-transition'] = 'auto' + } + return