justin-chu / react-fast-marquee

A lightweight React component that harnesses the power of CSS animations to create silky smooth marquees.
https://react-fast-marquee.com
MIT License
1.16k stars 95 forks source link

Can you provide a props to insert class into a specified node?(e.g. use in shadowDOM) #98

Open GisonL opened 7 months ago

GisonL commented 7 months ago
  1. Your source code: function ___$insertStyle(css) { if (!css || typeof window === 'undefined') { return; } const style = document.createElement('style'); style.setAttribute('type', 'text/css'); style.innerHTML = css; document.head.appendChild(style); return css; }

  2. I want to use in shadowDOM , But i can't use your class. So can you provide a props to insert class to my node, or css file? e.g. `import root from "react-shadow/styled-components"; import tailwindCSS from "@/styles/tailwind.less?inline";

{/* ... */} `