Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

280
Visualizações
Why does CodePen script not work with my NextJS local server?

Before anything, keep in mind I am extremely new to both NextJS, CodePen, and web dev in general.

I found this cool mouse movement animation on CodePen and wanted to implement it onto the website I just started building on NextJS. I'm fairly certain I imported the files correctly and the CSS works however the script does not.

This is my entire index.js code.

import Head from 'next/head'
import Script from 'next/script'

export default function Home() {
  return (
    <html lang="en" >
    <Head>
          
      <meta charset="UTF-8"/>
      
      <title>CodePen - Animated Background</title>
      <link href='https://fonts.googleapis.com/css?family=Raleway:200,400,800' rel='stylesheet' type='text/css'/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"/>
      <link rel='stylesheet' href='https://www.marcoguglie.it/Codepen/AnimatedHeaderBg/demo-1/css/demo.css'/><link rel="stylesheet" href="../styles/dynamic.css"/>

    </Head>
    <body>

      <div id="large-header" className="large-header">
        <canvas id="demo-canvas"></canvas>
          <h1 className="main-title">Vansh <span className="thin">Sharma</span></h1>
      </div>

      <Script src='https://www.marcoguglie.it/Codepen/AnimatedHeaderBg/demo-1/js/EasePack.min.js'/>
      <Script src='https://www.marcoguglie.it/Codepen/AnimatedHeaderBg/demo-1/js/rAF.js'/>
      <Script src='https://www.marcoguglie.it/Codepen/AnimatedHeaderBg/demo-1/js/TweenLite.min.js'/>
      <Script src="../scripts/dynamic_script.js" strategy='beforeInteractive' defer={false} type='text/javascript'/>

    </body>
    </html>

  )
}

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda