Giter Club home page Giter Club logo

animated-burgers's Introduction

animated-burgers's People

Contributors

march08 avatar ummahusla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

animated-burgers's Issues

Cannot get to work

Needless to say, I cannot get this to work.

I've followed the instruction on the website:

  1. Added the div block
  2. Changed the class to the appropriate one
  3. Copied the CSS file into my folders and linked them in the head of the HTML
  4. Even added and linked the JS. Although do not believe this does anything but was worth a try

So my problem is that I cannot trigger the animation at all. I've even tried it in a brand new document with no success. Same with codepen, no success there either. I've even tried using developer tools on the website to try and figure it out, but of cause, I would not be here if I did solve my problem.

I know the CSS is working because I can see the lines, so it can't be a problem with linking the file.

animated-burgers

thanks for your effort. nice work. We would love to assist you in the development of the project. have a nice day:)
,gökmen.

Unable to use it on create-react-app

I'm having difficulties when using it on my React app, when trying to install the npm or yarn package it displays the following error message:

npm install --save @animated-burgers/{burger-style} classnames npm ERR! code ENOLOCAL npm ERR! Could not install from "@animated-burgers/{burger-style}" as it does not contain a package.json file. npm ERR! A complete log of this run can be found in:

I would truly appreciate if you could tell me a way for using it on ReactJS.

Thanks in advance!

html/css navigates you to the wrong section

Under 'Available as plain html/css or as React components', if you click on html/css, it takes you to react section instead as it is using the incorrect id, it should be finding #htmlcss.

Console Error: <svg> attribute height: unexpected end of attribute. Expected length, "".

When I click the icon, nothing happens (no animation).

I am getting this issue when trying to build in my Gatsby project:
Screen Shot 2020-03-01 at 8 18 46 PM

I have ran npm install --save @animated-burgers/burger-squeeze classnames and integrated into my header.js file as such:

import { Link } from "gatsby"
import PropTypes from "prop-types"
import React from "react"

import "./scss/layout.scss"

import AniLink from "gatsby-plugin-transition-link/AniLink"
import Burger from '@animated-burgers/burger-squeeze' 
import '@animated-burgers/burger-squeeze/dist/styles.css' 
import '@animated-burgers/Burger/styles.scss' 

import Logo from "./logo"

const Header = ({ siteTitle }) => (
  <header
  style={{
    marginTop: 25,
    marginBottom: 25,
  }}>
    <div className="container" >
      <div className="row">
        <div className="col-9">
          <AniLink cover to={`/`} direction="right" bg="#EE4E31" duration={0.50}>
            <Logo />
          </AniLink>
        </div>
        <div className="col-3 my-auto desktop-menu">
          <div style={{textAlign: 'right'}}>
            <AniLink cover to={`/`} direction="left" bg="#EE4E31" duration={0.50}>Testing</AniLink>
          </div>
        </div>
        <div className="col-3 my-auto mobile-menu">
          <div style={{textAlign: 'right', marginTop: '-13px'}}>
            {/* <Link to="/" style={{fontSize: 40}}></Link> */}
            <Burger Component="button" type="button" />
          </div>
        </div>
      </div>
    </div>
  </header>
)

Header.propTypes = {
  siteTitle: PropTypes.string,
}

Header.defaultProps = {
  siteTitle: ``,
}

export default Header
import { Link } from "gatsby"
import PropTypes from "prop-types"
import React from "react"

import "./scss/layout.scss"

import AniLink from "gatsby-plugin-transition-link/AniLink"
import Burger from '@animated-burgers/burger-squeeze' 
import '@animated-burgers/burger-squeeze/dist/styles.css' 
import '@animated-burgers/Burger/styles.scss' 

import Logo from "./logo"

const Header = ({ siteTitle }) => (
  <header
  style={{
    marginTop: 25,
    marginBottom: 25,
  }}>
    <div className="container" >
      <div className="row">
        <div className="col-9">
          <AniLink cover to={`/`} direction="right" bg="#EE4E31" duration={0.50}>
            <Logo />
          </AniLink>
        </div>
        <div className="col-3 my-auto desktop-menu">
          <div style={{textAlign: 'right'}}>
            <AniLink cover to={`/`} direction="left" bg="#EE4E31" duration={0.50}>Testing</AniLink>
          </div>
        </div>
        <div className="col-3 my-auto mobile-menu">
          <div style={{textAlign: 'right', marginTop: '-13px'}}>
            {/* <Link to="/" style={{fontSize: 40}}></Link> */}
            <Burger Component="button" type="button" />
          </div>
        </div>
      </div>
    </div>
  </header>
)

Header.propTypes = {
  siteTitle: PropTypes.string,
}

Header.defaultProps = {
  siteTitle: ``,
}

export default Header

Let me know if I can provide any additional context or replication steps. Thank you for this cool tool!

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.