Friday, March 24, 2023
Learning Code
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#
No Result
View All Result
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#
No Result
View All Result
Learning Code
No Result
View All Result
Home JavaScript

Trying to figure out how to get fade to work – JavaScript – SitePoint Forums

learningcode_x1mckf by learningcode_x1mckf
October 30, 2022
in JavaScript
0
Trying to figure out how to get fade to work – JavaScript – SitePoint Forums
74
SHARES
1.2k
VIEWS
Share on FacebookShare on Twitter


You might also like

Toolkit Allows JavaScript Devs to Program Embedded Devices – The New Stack

Select data value from grandparent div? – JavaScript – SitePoint

How to Handle Errors in JavaScript – Programming – MUO – MakeUseOf


asasass



October 30, 2022, 12:06pm
#1

https://jsfiddle.net/xLkngsyd/

Additionally, in jsitor, after I click on on the 2nd video, the primary participant’s picture fades out.
https://jsitor.com/kDARJVjvu

I used to be attempting to fade out the picture, however I’m not positive I’m able to.

The define, after I click on on the primary video, it fades in how it’s purported to.

After the play button is clicked.

After I click on on the opposite movies it doesn’t work.

.curtain::after 
  content material: "";
  place: absolute;
  left: 0;
  proper: 0;
  backside: 0;
  prime: 0;
  define: 1px strong #333;
  pointer-events: none;


.curtain.slide::after 
  define: 1px strong #0059dd;
  transition: define 2s ease-in;


PaulOB



October 30, 2022, 12:36pm
#2

This can be a js query now and never css.

The picture fades out in jsfiddle additionally as a result of while you click on the picture a category of slide is added to the primary curtain within the html quite than the curtain of the present factor…

The youtube embed code removes the picture fully while you click on play and replaces it with the iframe so that you gained’t be capable of fade the picture out except you add a delay earlier than the iframe will get swapped. That’s past my scope and a query for the js discussion board.

1 Like


asasass



October 30, 2022, 3:33pm
#3

I used to be simply advised this.

operate openCurtain(cowl) 
    /* disguise(cowl);*/
    const curtain = doc.querySelector(".curtain");
    curtain.classList.add("slide");
  

When this operate runs, it’s simply going to focus on the primary curtain. querySelector will solely get the primary factor the selector matches.

The best way to goal the dad or mum nodes of a component. The curtain is 2 dad and mom above every div with class=“embed-youtube”.


PaulOB



October 30, 2022, 4:28pm
#4

asasass:

I used to be simply advised this.

That’s principally what I simply advised you.

You want the js to pick out the curtain factor which is an ancestor of the presently clicked merchandise.

You’ve gotten achieved related earlier than.

1 Like



Source link

Share30Tweet19
learningcode_x1mckf

learningcode_x1mckf

Recommended For You

Toolkit Allows JavaScript Devs to Program Embedded Devices – The New Stack

by learningcode_x1mckf
March 23, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Toolkit Allows JavaScript Devs to Program Embedded Devices  The New Stack Source link

Read more

Select data value from grandparent div? – JavaScript – SitePoint

by learningcode_x1mckf
March 23, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Select data value from grandparent div? - JavaScript  SitePoint Source link

Read more

How to Handle Errors in JavaScript – Programming – MUO – MakeUseOf

by learningcode_x1mckf
March 23, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

How to Handle Errors in JavaScript - Programming  MUO - MakeUseOf Source link

Read more

How to Use the Javascript Slice Method – hackernoon.com

by learningcode_x1mckf
March 23, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

How to Use the Javascript Slice Method  hackernoon.com Source link

Read more

Clean Code in JavaScript – SitePoint

by learningcode_x1mckf
March 23, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Clean Code in JavaScript  SitePoint Source link

Read more
Next Post
New Foundations for High-Scale Java Applications

New Foundations for High-Scale Java Applications

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related News

James Webb Space Telescope runs 20-year-old JavaScript engine from bankrupt company

James Webb Space Telescope runs 20-year-old JavaScript engine from bankrupt company

September 15, 2022
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Aimprosoft company and their Java Development Services – Tech Critter

March 11, 2023
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Can C++ Be Safer? Bjarne Stroustrup On Ensuring Memory Safety – Slashdot

February 12, 2023

Browse by Category

  • C#
  • C++
  • Java
  • JavaScript
  • Python
  • Swift

RECENT POSTS

  • Java Developer Survey Reveals Increased Need for Java … – PR Newswire
  • What You Should Definitely Pay Attention to When Hiring Java Developers – Modern Diplomacy
  • Java Web Frameworks Software Market Research Report 2023 … – Los Alamos Monitor

CATEGORIES

  • C#
  • C++
  • Java
  • JavaScript
  • Python
  • Swift

© 2022 Copyright Learning Code

No Result
View All Result
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#

© 2022 Copyright Learning Code

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?