Section3.jsx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { Action } from "../action";
  2. import { css } from "@emotion/react";
  3. import Viewer from "../components/Viewer";
  4. import { TimeLineLabelText } from "../components/TimeLineText";
  5. export default function Section3(props) {
  6. // eslint-disable-next-line react/prop-types
  7. const debug = props.debug || false;
  8. return (
  9. <Viewer
  10. height={"400vh"}
  11. name="Vessel Steadicam"
  12. path="vessel-steadi-10fps-873-rev1"
  13. frameCount={64}
  14. debug={debug}
  15. enterTween={Action.crossFadeIn}
  16. exitTween={Action.pinForExit}
  17. >
  18. <TimeLineLabelText
  19. verticalOffset={"70vh"}
  20. duration={0.15}
  21. fade={0.1}
  22. progressPosition={0}
  23. >
  24. <div
  25. css={css`
  26. font-weight: 300;
  27. font-size: 18px;
  28. width: 50%;
  29. max-width: 380px;
  30. padding: 8px 12px;
  31. margin-right: 20px;
  32. margin-left: auto;
  33. background: rgba(0, 0, 0, 0.7);
  34. border-radius: 2px;
  35. `}
  36. >
  37. 美索不达米亚人认为,人乃为服务于神而造。
  38. </div>
  39. </TimeLineLabelText>
  40. </Viewer>
  41. );
  42. }