Giter Site home page Giter Site logo

arrows's Introduction

Arrows

Draw arrows using the borders of an empty div. Specify the corner of the box which is the origin, the slope of the line and where the cap is

Example:

<div class="arrowscss" data-start="top-left" data-slope="diagonal" data-curve-type="concave">
    <div class="cap" data-position="end"></div>
</div>

Will draw this:

an example of an arrow

Note: if you use it as a wordpress block, in this repo it's named as "ferllop/arrows". If you change it, remember to change also in the first selector of the css file.

Div class arrow

Attributes:

  • data-start:

    • REQUIRED
    • Indicates the origin of the arrow in the square in the form of "x-y".
    • Values:
      • x can be left or right.
      • y can be top or bottom.
  • data-slope:

    • REQUIRED
    • Indicates the slope of the line of the arrow
    • Values: horizontal, vertical or diagonal.
  • data-curve:

    • OPTIONAL. If not provided, is a straight line
    • Indicates if the line is curved and in which form.
    • Values: "concave" or "convex"

Div class cap

Attributes:

  • data-position:
    • REQUIRED
    • Indicates where the cap of the arrow is. Will point to the appropriate direction automatically.
    • Values: "start" or "end"

arrows's People

Contributors

ferllop avatar

Watchers

 avatar

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.