summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.utility.js
blob: 64b4e48652880b088905428d40af32e33f546e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React from 'react'

export const FullscreenCurtain = ({ element, transitionDuration }) => {
  // console.log(element, isEntering)
  const { color } = element
  const style = {
    backgroundColor: color.backgroundColor,
    color: color.textColor,
    transitionDuration,
  }
  return (
    <div
      className='fullscreen-element curtain'
      style={style}
    >
      {element.annotation.settings.curtain_text && (
        <span dangerouslySetInnerHTML={{ __html: element.annotation.settings.curtain_text }} />
      )}
    </div>
  )
}