UNPKG

@pubsweet/ui-toolkit

Version:

Helper functions and reusable blocks for use with @pubsweet/ui

35 lines (25 loc) 970 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fadeOut = exports.fadeIn = void 0; var _styledComponents = require("styled-components"); function _templateObject2() { var data = _taggedTemplateLiteral(["\n from { opacity: 1 }\n to { opacity: 0 }\n"]); _templateObject2 = function _templateObject2() { return data; }; return data; } function _templateObject() { var data = _taggedTemplateLiteral(["\n from { opacity: 0 }\n to { opacity: 1 }\n"]); _templateObject = function _templateObject() { return data; }; return data; } function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } var fadeIn = (0, _styledComponents.keyframes)(_templateObject()); exports.fadeIn = fadeIn; var fadeOut = (0, _styledComponents.keyframes)(_templateObject2()); exports.fadeOut = fadeOut;