@cantonjs/react-scroll-view
Version:
react scroll component using intersection observer API
27 lines (23 loc) • 527 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
var _Style = require('../Style');
var _constants = require('../constants');
exports.default = (0, _Style.create)({
iconContainer: {
width: 100,
height: 32,
position: 'absolute',
left: '50%',
bottom: _constants.PullThreshold / 2 - 16,
marginLeft: -50,
textAlign: 'center'
},
arrowIcon: function arrowIcon(isActive) {
return {
transform: 'rotateZ(' + (isActive ? 180 : 0) + 'deg)',
transition: 'transform 0.3s'
};
}
});
;