Giter VIP home page Giter VIP logo

amirho1 / react-special-cursor Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 5.0 1.24 MB

react-special-cursor gives you the ability to decorate your cursor not only one shape it let you change the shape with the different class name that you passed to Component

Home Page: https://amirho1.github.io/react-special-cursor/

License: MIT License

JavaScript 6.41% TypeScript 71.42% SCSS 10.82% Shell 0.12% CSS 11.23%
raect react-special-cursor react-cursor cursor animated-cursor cursor-theme custom-cursors typescript-library typescript-react

react-special-cursor's People

Contributors

amirho1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-special-cursor's Issues

Is this work with next.js

hello,

I am trying to use with next.js but I have found some errors during installation can you help into this.

Add react-special-cursor in Next.js project

Hi amirho1,
Thank's for your super nice Cursor !!
I try to add react-special-cursor in my Next.js project but still have this error message :

./node_modules/react-special-cursor/src/Cursor/Cursor.scss
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/react-special-cursor/src/Cursor/Cursor.js

So I import Cursor.scss in my _ap.js as mentionned in the doc :
"Since Next.js 9.5.4, importing a CSS file from node_modules is permitted anywhere in your application."

https://nextjs.org/docs/basic-features/built-in-css-support

import "../styles/globals.scss";
import "../styles/fonts.scss";
import "react-special-cursor/src/Cursor/Cursor.scss"

function MyApp({ Component, pageProps }) {
  return <Component {...pageProps} />;
}

export default MyApp;

and import react-special-cursor in my component :

import React from "react";
import Head from "next/head";
import Image from "next/image";
import styles from "../styles/Home.module.scss";
import Link from "next/link";
import Cursor from "react-special-cursor";
import "react-special-cursor/src/Cursor/Cursor.scss";

export default function Home() {
  return (
    <Cursor>
      <div className={styles.container}>
        <Head>
          <title>
            Fleuriste Paris
          </title>
      </div>
    </Cursor>
  );
}

But, I still have the same error.
Do you have any idea ?
Thank's for your help !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.