Fade out a fragment later in reveal.js - reveal.js

I am trying to fade in an element, have it visible for a range of steps, and then hide it. Using class="fragment current-visible" or class="fragment fade-in-then-out" does not work as the fragment is visible for only one step. I tried using nested fragments together with the data-fragment-index attribute but nothing worked.
For example:
Step 1 (empty slide):
Step 2 (first item appears):
Item 1
Step 3 (second item appears, first item still visible):
Item 1
Item 2
Step 4 (first item disappears)
Item 2

Related

Drag and Drop: by using copyArrayItem() the dragged item should not be removed from start array while drop Angular 8

I have a list of items from where I drag an item and drop it into another list. I'm using copyArrayItem() method from Angular to not remove the item from the previous array.
I start dragging, the item is within the previous array: the placeholder from that item shows up.
Start dragging, placeholder shows up
I'm leaving the previous array: the placeholder/dragged item disappears (I want that the placeholder/dragged item stays) -> the start array has minus 1 items.
Placeholder disappears, what I don't want
I'm on the target array: a placeholder appears in a target array.
I'm dropping the item: item appears now in the start and target array.
After more research I've found an open issue about that problem:
https://github.com/angular/components/issues/13906
and there I've found suggestions from participants:
https://stackblitz.com/edit/angular-krmecd?file=src%2Fapp%2Fapp.component.ts
This example with workaround helped me to solve this problem:
https://stackblitz.com/edit/angular-o8exzv-jauhhi?file=src%2Fapp%2Fcdk-drag-drop-connected-sorting-example.html
Maybe this information will be useful for someone.

Google Sheets: Pulling data from tab 2 to tab 1 based on a drop down variable from tab 1

Sheet reference I'm currently working with: https://docs.google.com/spreadsheets/d/1UxwkzBTnwOLV341Vciy8_NWylMSSjhb7SkFDqVW6ImI/edit?usp=sharing
So, kinda what the title says.. I'm completely stumped here.
Trying to pull the data (including the column headers) over from tab 2 into tab 1 based on the drop down (grey colored) menu item chosen by the user in tab 1. (The "potions" are listed in column A of Tab 2 as well, row 1 indicates "herbs" required for any particular potion by the variable numbers in the corresponding cells for the "potions")
Essentially, you choose a "potion" in the grey drop down, then a "recipe list" will populate in the remaining white space in tab 1.
Any ideas here?
Try the following formula in cell B12:
=transpose(filter(transpose(filter('Recipe Data'!B:BJ,(row('Recipe Data'!A:A)=1)+('Recipe Data'!A:A=B9))),len(transpose(filter('Recipe Data'!B:BJ,('Recipe Data'!A:A=B9))))))
In addition to Kishan's contribution, you can also try
=transpose(query(transpose({'Recipe Data'!B1:BJ1; filter('Recipe Data'!B2:BJ, 'Recipe Data'!A2:A=B9)}), "where Col2 is not null", 0))

Show div as per a pre selected dropdown when page loads

I want to show a division as per the selected value in drop down list when page loads. For example,
If I have a drop down containing 2 options and i have selected option 2 and it shows a div2 then when page reloads, it should again show the option2 selected and div2 shown instead of option1 and its div1.

How to render Menu level 1 and 2 always others if parent selected with simple navigation

I am working with SimpleNavigation-gem on rails;
My Menu display looks like this: Top - level (level 1) on top of the page (thats why it is called top level, I think)
toplevel has 3 items: left, right and legal (at the bottom ;-))
all have some submenus
what I already got is:
A toplevel menu, only showing level 1 ie 3 items.
a menu on the left, showing only 'menu left' items and same for the other two.
All is fine as long i 'expand: all', but i dont want to have all expanded, level 3 should only be here if level2 is selected. so what I need is 'expand: all_to_level_2'
if I use level: (1..2) i get what it says level 1 & 2 but not level 3 if parent is selected
any ideas?

How can I set initial offset for first page in kaminari?

I need to implement some logic for to show 3 elements on the first page and by 1 element on all the next. For the first page there is no problems:
items = #model.limit(#first_page_items)
and for all the next ones i tried:
#model.offset(#first_page_items).page(#current_page - 1).per(#per) #makes no offset at all - all the items going from the beginning
#model.page(#current_page - 1).per(#per).offset(#first_page_items) #produces 4-th element on the second page and stays on it for ever
What am I doing wrong? thx

Resources