Issue with creating a firework animation using a codepenCreating a div element in jQueryHow to create an HTML button that acts like a link?How repeat background image in div longer then page length?Creating a two-column-100% layout with BootstrapCSS3 - Image SlideshowAnimate div on clickContainer DIV stretches when resizing but not when scrollingSetting overflow to scroll on fixed div doesn't workInvalid css style during zooming in calendarDoes Box Model calculation include margin or not?
How can bays and straits be determined in a procedurally generated map?
Malformed Address '10.10.21.08/24', must be X.X.X.X/NN or
Could an aircraft fly or hover using only jets of compressed air?
What's that red-plus icon near a text?
Why is 150k or 200k jobs considered good when there's 300k+ births a month?
Are astronomers waiting to see something in an image from a gravitational lens that they've already seen in an adjacent image?
"You are your self first supporter", a more proper way to say it
Why can't we play rap on piano?
When a company launches a new product do they "come out" with a new product or do they "come up" with a new product?
What is a clear way to write a bar that has an extra beat?
How do I deal with an unproductive colleague in a small company?
How does quantile regression compare to logistic regression with the variable split at the quantile?
Horror movie about a virus at the prom; beginning and end are stylized as a cartoon
Watching something be written to a file live with tail
How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?
Is it possible to do 50 km distance without any previous training?
What are the disadvantages of having a left skewed distribution?
Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)
Arrow those variables!
Revoked SSL certificate
Theorems that impeded progress
What are these boxed doors outside store fronts in New York?
What's the point of deactivating Num Lock on login screens?
Did Shadowfax go to Valinor?
Issue with creating a firework animation using a codepen
Creating a div element in jQueryHow to create an HTML button that acts like a link?How repeat background image in div longer then page length?Creating a two-column-100% layout with BootstrapCSS3 - Image SlideshowAnimate div on clickContainer DIV stretches when resizing but not when scrollingSetting overflow to scroll on fixed div doesn't workInvalid css style during zooming in calendarDoes Box Model calculation include margin or not?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Here is a CodePen which I want to test. It creates a beautiful fireworks animation But, When I create an HTML file and a CSS file and copy and paste the same code from CodePen, nothing happens. what I'm missing?
CodePen: https://codepen.io/yshlin/pen/ylDEk
My Files:
My Html file whch is named Index.html:
<link rel="stylesheet" href="Style.css">
<div class="pyro">
<div class="before"></div>
<div class="after"></div>
</div>
CSS File named Style.css
$particles: 50;
$width: 500;
$height: 500;
// Create the explosion...
$box-shadow: ();
$box-shadow2: ();
@for $i from 0 through $particles
$box-shadow: $box-shadow,
random($width)-$width / 2 + px
random($height)-$height / 1.2 + px
hsl(random(360), 100, 50);
$box-shadow2: $box-shadow2, 0 0 #fff
@mixin keyframes ($animationName)
@-webkit-keyframes #$animationName
@content;
@-moz-keyframes #$animationName
@content;
@-o-keyframes #$animationName
@content;
@-ms-keyframes #$animationName
@content;
@keyframes #$animationName
@content;
@mixin animation-delay ($settings)
-moz-animation-delay: $settings;
-webkit-animation-delay: $settings;
-o-animation-delay: $settings;
-ms-animation-delay: $settings;
animation-delay: $settings;
@mixin animation-duration ($settings)
-moz-animation-duration: $settings;
-webkit-animation-duration: $settings;
-o-animation-duration: $settings;
-ms-animation-duration: $settings;
animation-duration: $settings;
@mixin animation ($settings)
-moz-animation: $settings;
-webkit-animation: $settings;
-o-animation: $settings;
-ms-animation: $settings;
animation: $settings;
@mixin transform ($settings)
transform: $settings;
-moz-transform: $settings;
-webkit-transform: $settings;
-o-transform: $settings;
-ms-transform: $settings;
body
margin:0;
padding:0;
background: transparent;
overflow: hidden;
.pyro > .before, .pyro > .after
position: absolute;
width: 5px;
height: 5px;
border-radius: 50%;
box-shadow: $box-shadow2;
@include animation((1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards));
.pyro > .after
@include animation-delay((1.25s, 1.25s, 1.25s));
@include animation-duration((1.25s, 1.25s, 6.25s));
@include keyframes(bang)
to
box-shadow:$box-shadow;
@include keyframes(gravity)
to
@include transform(translateY(200px));
opacity: 0;
@include keyframes(position)
0%, 19.9%
margin-top: 10%;
margin-left: 40%;
20%, 39.9%
margin-top: 40%;
margin-left: 30%;
40%, 59.9%
margin-top: 20%;
margin-left: 70%
60%, 79.9%
margin-top: 30%;
margin-left: 20%;
80%, 99.9%
margin-top: 30%;
margin-left: 80%;
html css html5
add a comment |
Here is a CodePen which I want to test. It creates a beautiful fireworks animation But, When I create an HTML file and a CSS file and copy and paste the same code from CodePen, nothing happens. what I'm missing?
CodePen: https://codepen.io/yshlin/pen/ylDEk
My Files:
My Html file whch is named Index.html:
<link rel="stylesheet" href="Style.css">
<div class="pyro">
<div class="before"></div>
<div class="after"></div>
</div>
CSS File named Style.css
$particles: 50;
$width: 500;
$height: 500;
// Create the explosion...
$box-shadow: ();
$box-shadow2: ();
@for $i from 0 through $particles
$box-shadow: $box-shadow,
random($width)-$width / 2 + px
random($height)-$height / 1.2 + px
hsl(random(360), 100, 50);
$box-shadow2: $box-shadow2, 0 0 #fff
@mixin keyframes ($animationName)
@-webkit-keyframes #$animationName
@content;
@-moz-keyframes #$animationName
@content;
@-o-keyframes #$animationName
@content;
@-ms-keyframes #$animationName
@content;
@keyframes #$animationName
@content;
@mixin animation-delay ($settings)
-moz-animation-delay: $settings;
-webkit-animation-delay: $settings;
-o-animation-delay: $settings;
-ms-animation-delay: $settings;
animation-delay: $settings;
@mixin animation-duration ($settings)
-moz-animation-duration: $settings;
-webkit-animation-duration: $settings;
-o-animation-duration: $settings;
-ms-animation-duration: $settings;
animation-duration: $settings;
@mixin animation ($settings)
-moz-animation: $settings;
-webkit-animation: $settings;
-o-animation: $settings;
-ms-animation: $settings;
animation: $settings;
@mixin transform ($settings)
transform: $settings;
-moz-transform: $settings;
-webkit-transform: $settings;
-o-transform: $settings;
-ms-transform: $settings;
body
margin:0;
padding:0;
background: transparent;
overflow: hidden;
.pyro > .before, .pyro > .after
position: absolute;
width: 5px;
height: 5px;
border-radius: 50%;
box-shadow: $box-shadow2;
@include animation((1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards));
.pyro > .after
@include animation-delay((1.25s, 1.25s, 1.25s));
@include animation-duration((1.25s, 1.25s, 6.25s));
@include keyframes(bang)
to
box-shadow:$box-shadow;
@include keyframes(gravity)
to
@include transform(translateY(200px));
opacity: 0;
@include keyframes(position)
0%, 19.9%
margin-top: 10%;
margin-left: 40%;
20%, 39.9%
margin-top: 40%;
margin-left: 30%;
40%, 59.9%
margin-top: 20%;
margin-left: 70%
60%, 79.9%
margin-top: 30%;
margin-left: 20%;
80%, 99.9%
margin-top: 30%;
margin-left: 80%;
html css html5
add a comment |
Here is a CodePen which I want to test. It creates a beautiful fireworks animation But, When I create an HTML file and a CSS file and copy and paste the same code from CodePen, nothing happens. what I'm missing?
CodePen: https://codepen.io/yshlin/pen/ylDEk
My Files:
My Html file whch is named Index.html:
<link rel="stylesheet" href="Style.css">
<div class="pyro">
<div class="before"></div>
<div class="after"></div>
</div>
CSS File named Style.css
$particles: 50;
$width: 500;
$height: 500;
// Create the explosion...
$box-shadow: ();
$box-shadow2: ();
@for $i from 0 through $particles
$box-shadow: $box-shadow,
random($width)-$width / 2 + px
random($height)-$height / 1.2 + px
hsl(random(360), 100, 50);
$box-shadow2: $box-shadow2, 0 0 #fff
@mixin keyframes ($animationName)
@-webkit-keyframes #$animationName
@content;
@-moz-keyframes #$animationName
@content;
@-o-keyframes #$animationName
@content;
@-ms-keyframes #$animationName
@content;
@keyframes #$animationName
@content;
@mixin animation-delay ($settings)
-moz-animation-delay: $settings;
-webkit-animation-delay: $settings;
-o-animation-delay: $settings;
-ms-animation-delay: $settings;
animation-delay: $settings;
@mixin animation-duration ($settings)
-moz-animation-duration: $settings;
-webkit-animation-duration: $settings;
-o-animation-duration: $settings;
-ms-animation-duration: $settings;
animation-duration: $settings;
@mixin animation ($settings)
-moz-animation: $settings;
-webkit-animation: $settings;
-o-animation: $settings;
-ms-animation: $settings;
animation: $settings;
@mixin transform ($settings)
transform: $settings;
-moz-transform: $settings;
-webkit-transform: $settings;
-o-transform: $settings;
-ms-transform: $settings;
body
margin:0;
padding:0;
background: transparent;
overflow: hidden;
.pyro > .before, .pyro > .after
position: absolute;
width: 5px;
height: 5px;
border-radius: 50%;
box-shadow: $box-shadow2;
@include animation((1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards));
.pyro > .after
@include animation-delay((1.25s, 1.25s, 1.25s));
@include animation-duration((1.25s, 1.25s, 6.25s));
@include keyframes(bang)
to
box-shadow:$box-shadow;
@include keyframes(gravity)
to
@include transform(translateY(200px));
opacity: 0;
@include keyframes(position)
0%, 19.9%
margin-top: 10%;
margin-left: 40%;
20%, 39.9%
margin-top: 40%;
margin-left: 30%;
40%, 59.9%
margin-top: 20%;
margin-left: 70%
60%, 79.9%
margin-top: 30%;
margin-left: 20%;
80%, 99.9%
margin-top: 30%;
margin-left: 80%;
html css html5
Here is a CodePen which I want to test. It creates a beautiful fireworks animation But, When I create an HTML file and a CSS file and copy and paste the same code from CodePen, nothing happens. what I'm missing?
CodePen: https://codepen.io/yshlin/pen/ylDEk
My Files:
My Html file whch is named Index.html:
<link rel="stylesheet" href="Style.css">
<div class="pyro">
<div class="before"></div>
<div class="after"></div>
</div>
CSS File named Style.css
$particles: 50;
$width: 500;
$height: 500;
// Create the explosion...
$box-shadow: ();
$box-shadow2: ();
@for $i from 0 through $particles
$box-shadow: $box-shadow,
random($width)-$width / 2 + px
random($height)-$height / 1.2 + px
hsl(random(360), 100, 50);
$box-shadow2: $box-shadow2, 0 0 #fff
@mixin keyframes ($animationName)
@-webkit-keyframes #$animationName
@content;
@-moz-keyframes #$animationName
@content;
@-o-keyframes #$animationName
@content;
@-ms-keyframes #$animationName
@content;
@keyframes #$animationName
@content;
@mixin animation-delay ($settings)
-moz-animation-delay: $settings;
-webkit-animation-delay: $settings;
-o-animation-delay: $settings;
-ms-animation-delay: $settings;
animation-delay: $settings;
@mixin animation-duration ($settings)
-moz-animation-duration: $settings;
-webkit-animation-duration: $settings;
-o-animation-duration: $settings;
-ms-animation-duration: $settings;
animation-duration: $settings;
@mixin animation ($settings)
-moz-animation: $settings;
-webkit-animation: $settings;
-o-animation: $settings;
-ms-animation: $settings;
animation: $settings;
@mixin transform ($settings)
transform: $settings;
-moz-transform: $settings;
-webkit-transform: $settings;
-o-transform: $settings;
-ms-transform: $settings;
body
margin:0;
padding:0;
background: transparent;
overflow: hidden;
.pyro > .before, .pyro > .after
position: absolute;
width: 5px;
height: 5px;
border-radius: 50%;
box-shadow: $box-shadow2;
@include animation((1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards));
.pyro > .after
@include animation-delay((1.25s, 1.25s, 1.25s));
@include animation-duration((1.25s, 1.25s, 6.25s));
@include keyframes(bang)
to
box-shadow:$box-shadow;
@include keyframes(gravity)
to
@include transform(translateY(200px));
opacity: 0;
@include keyframes(position)
0%, 19.9%
margin-top: 10%;
margin-left: 40%;
20%, 39.9%
margin-top: 40%;
margin-left: 30%;
40%, 59.9%
margin-top: 20%;
margin-left: 70%
60%, 79.9%
margin-top: 30%;
margin-left: 20%;
80%, 99.9%
margin-top: 30%;
margin-left: 80%;
html css html5
html css html5
asked Mar 21 at 22:55
Sara ReeSara Ree
19510
19510
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
He is using sass, you have to compile the file to convert it in a CSS, you can see the compiled CSS clicking the dropdown that is in the top right part of the box of CSS
Wow... That's a first... Thanks for the answer... Plus one
– Sara Ree
Mar 22 at 6:48
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55290434%2fissue-with-creating-a-firework-animation-using-a-codepen%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
He is using sass, you have to compile the file to convert it in a CSS, you can see the compiled CSS clicking the dropdown that is in the top right part of the box of CSS
Wow... That's a first... Thanks for the answer... Plus one
– Sara Ree
Mar 22 at 6:48
add a comment |
He is using sass, you have to compile the file to convert it in a CSS, you can see the compiled CSS clicking the dropdown that is in the top right part of the box of CSS
Wow... That's a first... Thanks for the answer... Plus one
– Sara Ree
Mar 22 at 6:48
add a comment |
He is using sass, you have to compile the file to convert it in a CSS, you can see the compiled CSS clicking the dropdown that is in the top right part of the box of CSS
He is using sass, you have to compile the file to convert it in a CSS, you can see the compiled CSS clicking the dropdown that is in the top right part of the box of CSS
answered Mar 21 at 23:54
marcos.efremmarcos.efrem
32119
32119
Wow... That's a first... Thanks for the answer... Plus one
– Sara Ree
Mar 22 at 6:48
add a comment |
Wow... That's a first... Thanks for the answer... Plus one
– Sara Ree
Mar 22 at 6:48
Wow... That's a first... Thanks for the answer... Plus one
– Sara Ree
Mar 22 at 6:48
Wow... That's a first... Thanks for the answer... Plus one
– Sara Ree
Mar 22 at 6:48
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55290434%2fissue-with-creating-a-firework-animation-using-a-codepen%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown