Ich habe ein Canvas-Setup mit einer Anzahl von Partikeln, die sich um den Bildschirm bewegen. Wenn der Benutzer klickt, werden weitere Partikel hinzugefügt. Das Problem ist, dass dieses Partikelsystem für eine Zielseite ist.Möglich, HTML-Inhalt oben auf einem Canvas (Landing Page) zu setzen
Ich habe die Leinwand arbeiten, aber wenn ich Text auf der Zielseite hinzufügen möchte, kann ich nicht. Ist das möglich? Ich würde gerne "Willkommen" in der Mitte des Bildschirms haben, aber wenn ich es in den HTML-Code hinzufügen, wo die Partikel sind, ist es nicht sichtbar.
--- Meine HTML ---
<div id="particles-js"></div>
<div class="count-particles">
<span class="js-count-particles">--</span> particles
</div>
--- Die CSS ---
/* ---- reset ---- */
body {
margin: 0;
font:normal 75% Arial, Helvetica, sans-serif;
}
canvas {
display: block;
vertical-align: bottom;
}
/* ---- particles.js container ---- */
#particles-js {
position: absolute;
width: 100%;
height: 100%;
background-color: blue;
background-image: url("");
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
}
/* ---- stats.js ---- */
.count-particles{
background: #000022;
position: absolute;
top: 48px;
left: 0;
width: 80px;
color: #13E8E9;
font-size: .8em;
text-align: left;
text-indent: 4px;
line-height: 14px;
padding-bottom: 2px;
font-family: Helvetica, Arial, sans-serif;
font-weight: bold;
}
.js-count-particles{
font-size: 1.1em;
}
#stats,
.count-particles{
-webkit-user-select: none;
margin-top: 5px;
margin-left: 5px;
}
#stats{
border-radius: 3px 3px 0 0;
overflow: hidden;
}
.count-particles{
border-radius: 0 0 3px 3px;
}
ich eine Codepen.io Setup haben, wird jede Hilfe sehr geschätzt!
-Codepen.io - http://codepen.io/HoneyBadgerYT/pen/jqKZxo