vue-particles icon indicating copy to clipboard operation
vue-particles copied to clipboard

Question: How to insert Html tags inside this particle

Open donPuerto opened this issue 7 years ago • 5 comments

Got no luck below:

<template>
    <div id="app">
           <vue-particles color="#dedede">
                      <h1>Hello World</h1>
          </vue-particles>
    </div>
 </template>

Any help?

donPuerto avatar Jun 20 '17 13:06 donPuerto

@donPuerto Use the example from vue-particles demo and tweak with css:

<div class="wrap-banner">
      <div class="main-title">
        <h2>
          Vue-Particles
        </h2>
        <p class="subtitle">
          Vue.js component for particles backgrounds
        </p>
        <p class="subtitle">
          SSR compatible
        </p>
        <br>
        <a class="gh-button" target="_blank" href="https://github.com/creotip/vue-particles"><span class="gh-button__icon"></span>Download</a>
      </div>
      <vue-particles
        color="#ffffff"
        :particleOpacity="0.7"
        linesColor="#ffffff"
        :particlesNumber="80"
        shapeType="circle"
        :particleSize="5"
        :linesWidth="2"
        :lineLinked="true"
        :lineOpacity="0.4"
        :linesDistance="150"
        :moveSpeed="3"
        :hoverEffect="true"
        hoverMode="grab"
        :clickEffect="true"
        clickMode="push"
      >
      </vue-particles>

    </div>

roslaneshellanoo avatar Jun 21 '17 09:06 roslaneshellanoo

@roslaneshellanoo do you have working example to follow? thanks...

donPuerto avatar Jun 23 '17 10:06 donPuerto

@donPuerto it doesnt work

kd-s-t avatar Sep 15 '17 05:09 kd-s-t

The important part for me was to use absolute positioning. Something like:

.particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

JThinkable avatar Jan 20 '18 21:01 JThinkable

The code below works for me #Id not .class

`

`

Alameen688 avatar Feb 14 '18 11:02 Alameen688