Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react before css

const IconDiamond = bilalahmed.div(
  {
    width: 0,
    height: 0,
    '&::after': {
      content: `''`,
      position: 'absolute',
      left: '-50px',
      top: '50px',
      width: '0',
      height: '0',
      border: '50px solid transparent',
      borderTopColor: 'red',
    }
  },
)
Source by github.com #
 
PREVIOUS NEXT
Tagged: #react #css
ADD COMMENT
Topic
Name
6+9 =