YouTube2Text

Filterable Image Gallery With Variables In Figma | 2024 — Transcript

by Emmanuel’s Design Lab · 4,101 words · 656 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Hi everyone, and welcome to today's
  2. 0:01Figma tutorial. So, have you ever
  3. 0:03wondered how you can create a filterable
  4. 0:05image gallery using Figma? As you can
  5. 0:07see, every time I search and switch, I
  6. 0:09can actually filter all the images into
  7. 0:12the category as I actually want them.
  8. 0:14So, how do we do this in Figma? Find out
  9. 0:17in today's video.
  10. 0:26All right, so I have this new project
  11. 0:28here, and I'm going to call it
  12. 0:29filterable image gallery. All right, so
  13. 0:33there we go. So, next we're going to
  14. 0:34insert a frame. So, the frame shall be
  15. 0:37Let's go with something of the desktop
  16. 0:39size. Let's go with MacBook Pro 14. That
  17. 0:42would do. All right, so next let's give
  18. 0:44this some margins. Let's add a layout
  19. 0:47grid. Let's change this to
  20. 0:49columns. Then we're going to give this a
  21. 0:51margin of 70. Return a bit that looks
  22. 0:54fine. All right, so I'm going to be
  23. 0:55using this. So, let's type in some text.
  24. 0:58All right, so zoom in, type in the text
  25. 1:00photo
  26. 1:01gallery. Then we're actually going to
  27. 1:03make this bold. So, all the text is in
  28. 1:06form of Inter, and then we're going to
  29. 1:07make this bold. Make sure everything is
  30. 1:10selected, then let's give this a font
  31. 1:11size of 30. And let's just make sure it
  32. 1:14actually touches this margin.
  33. 1:18Something So, let's go to the plugins
  34. 1:19Iconify, then search for Type in search.
  35. 1:23Now we're going to select a search icon.
  36. 1:25Let's select this one.
  37. 1:28Paste it in, and let's also search for
  38. 1:31menu.
  39. 1:33So, drag this and drop it in. So, there
  40. 1:36we go. So, we have our menu and the
  41. 1:38search selected. So, drag these out of
  42. 1:40their frames.
  43. 1:42Delete those frames.
  44. 1:44All right, then drag these onto your
  45. 1:46frame, main frame here.
  46. 1:48And there we go. So, just going to scale
  47. 1:50these up a little bit.
  48. 1:53All right, that looks better. All right,
  49. 1:55so next I'm going to insert in some
  50. 1:56boxes. So, I'm going to make use of the
  51. 1:58rectangle tool, give it dimensions. I'm
  52. 2:01going to go with 229 by 229.
  53. 2:05I believe that will fit perfectly.
  54. 2:08And I'm actually going to duplicate this
  55. 2:09multiple times. So, hold alt, then place
  56. 2:12the next one just right next to it.
  57. 2:14Hold alt, hold alt again, and alt
  58. 2:19again.
  59. 2:21So, it's actually make sure they're
  60. 2:22actually
  61. 2:24next to each other.
  62. 2:29Then we're going to duplicate this one
  63. 2:30more time. So, let's give these
  64. 2:31different colors.
  65. 2:33All right. So, now that we have that, we
  66. 2:34can actually
  67. 2:37duplicate this. So, hold alt, duplicate
  68. 2:40that, and then hold alt one more time.
  69. 2:42So, you now have 18 boxes. So, now
  70. 2:45select all of them, and we're going to
  71. 2:46actually create an auto layout. Right
  72. 2:48click, and then select the option add
  73. 2:50auto layout. And then, we're actually
  74. 2:52going to set it to
  75. 2:54wrap auto layout. And then, we're going
  76. 2:56to make sure that the gap between them
  77. 2:57is actually set to zero. So, everything
  78. 2:59is actually basically together.
  79. 3:02All right. So, there we go. So, that's
  80. 3:03how I actually want it. Then lastly, we
  81. 3:06can actually now disable this.
  82. 3:09All right. So, there we go. So, we
  83. 3:10actually have our boxes here. So, next
  84. 3:12we're going to go to our
  85. 3:13Unsplash plugin. So, select Unsplash
  86. 3:16plugin, and then we're going to insert
  87. 3:17images to all the boxes.
  88. 3:20And then inside the frame, randomly
  89. 3:22select any box that you want, and
  90. 3:23actually fill it up with a image by
  91. 3:25actually just clicking until every box
  92. 3:28is filled.
  93. 3:30All right. So, once you've filled it
  94. 3:31with random images, now selected images
  95. 3:33that actually have an ocean, women, men,
  96. 3:37and then I've chosen those that have
  97. 3:38bicycles, and birds. So, that's the
  98. 3:41category that I've actually chosen. So,
  99. 3:42when you actually fill up every box, now
  100. 3:44you can actually rename them. So, now
  101. 3:46just make sure that all those boxes that
  102. 3:48actually have the oceans depicted
  103. 3:51actually have the same name. So, where
  104. 3:52there's ocean here, I'm actually going
  105. 3:53to call this ocean. Then I'll go to the
  106. 3:56next one. Then this shall also be called
  107. 3:58ocean.
  108. 4:00Then select this. Just make sure that
  109. 4:02all the categories that you actually
  110. 4:03want to filter together have the same
  111. 4:06name.
  112. 4:09Now, do that for each individual image.
  113. 4:11So, this shall actually represent So,
  114. 4:13there will be one for women, birds, that
  115. 4:15for men, and bicycle.
  116. 4:18So, let's do that quickly.
  117. 4:28All right. So, now we've done renaming
  118. 4:30each one of them. So, there is a group
  119. 4:32that is called ocean. There's that for
  120. 4:33woman, bird, man, and bicycle. So, this
  121. 4:36will actually enable us make the
  122. 4:38filtering process easy. So, lastly,
  123. 4:40we're going to rename this frame that
  124. 4:41they're actually all grouped in. We're
  125. 4:42going to call this
  126. 4:44images.
  127. 4:45All right. So, next I'm going to create
  128. 4:47the menus. So, now let's zoom in. Then
  129. 4:49we're going to make use of this
  130. 4:50rectangle tool. So, we're going to draw
  131. 4:51something like that. And then we're
  132. 4:53actually going to give it dimensions
  133. 4:55108
  134. 4:57by 43.
  135. 4:59So, there we go. Then we're going to
  136. 5:00give it a border radius of 20.
  137. 5:03Then we're actually going to give it a
  138. 5:05color for the for the form when it is
  139. 5:07still deselected. So, we're going to
  140. 5:09give this a color
  141. 5:10with coordinates E E8 E8 E 8. So, there
  142. 5:16we go. Then we're going to type some
  143. 5:17text in. Then this text is going to be
  144. 5:20all photos.
  145. 5:22Then we're actually going to scale this
  146. 5:23text down. Going to give it a
  147. 5:25font size of 12.8.
  148. 5:28Then let's actually leave it uh bolded
  149. 5:30and inter. So, that's actually okay. So,
  150. 5:31let's place this at the top. So, we're
  151. 5:33actually going to center this.
  152. 5:36Make sure it's centered. So, there we
  153. 5:38go. All right. So, next I'm going to
  154. 5:40duplicate this box then hold Alt.
  155. 5:43Then now we have a second copy. So, in
  156. 5:44the second copy, turn this text to
  157. 5:46white. Then we're going to turn this
  158. 5:48rectangle
  159. 5:50to black. So now we actually have a
  160. 5:52deselected state and then a selected
  161. 5:55state. All right. So now what we want is
  162. 5:56that when a user clicks on the button,
  163. 5:58this is the state that will actually
  164. 5:59appear. So this will be the selected
  165. 6:00state and this will be the deselected
  166. 6:03state. So now we're going to group this
  167. 6:05here. So group this and then we're going
  168. 6:07to call this group call this group
  169. 6:09selected.
  170. 6:11Then we're actually going to group this
  171. 6:13also.
  172. 6:14Group this.
  173. 6:15Then we're going to call this group
  174. 6:18deselected.
  175. 6:21All right. So now we're going to do the
  176. 6:22same thing for all the other different
  177. 6:24categories. So actually going to
  178. 6:25duplicate these two.
  179. 6:27Just duplicate this here. Let's do it in
  180. 6:30five different
  181. 6:31groups.
  182. 6:34All right. So there we go. So these are
  183. 6:35the five different groups. So now next
  184. 6:38we're going to go back to this state
  185. 6:39here and we're actually going to group
  186. 6:40this. So place this selected state on
  187. 6:43top of the deselected. Make sure they're
  188. 6:45actually aligned together. All right. So
  189. 6:47next we're actually going to group
  190. 6:48these. So group the selection and we're
  191. 6:50going to call it all
  192. 6:52photos.
  193. 6:54All right. So now that we've done that
  194. 6:55we're actually going to go to the others
  195. 6:57then we're also going to rename them. So
  196. 6:58we're going to call this group
  197. 7:00oceans. And this shall also have to be
  198. 7:03oceans.
  199. 7:05All right. So next make sure that text
  200. 7:06is actually aligned to the center. Make
  201. 7:08sure it's the same thing here.
  202. 7:10Then we're actually going to place this
  203. 7:12on top of that.
  204. 7:14So we have the selected on top of this
  205. 7:16unselected. Then we're actually going to
  206. 7:18group these.
  207. 7:21And this group is going to be called
  208. 7:23oceans
  209. 7:25selected.
  210. 7:28All right. So next move to the next
  211. 7:30group. Then we're going to rename this.
  212. 7:32So we're going to have that for women.
  213. 7:34Then we're going to have that for men.
  214. 7:37Then we're going to have this for
  215. 7:38bicycle. Let's call it bicycles.
  216. 7:42And lastly, I want to have this for
  217. 7:44beds.
  218. 7:46All right. So, next make sure that here,
  219. 7:48here and here, make sure that the text
  220. 7:49is aligned to center.
  221. 7:51Something here.
  222. 7:53Make sure this is also aligned to
  223. 7:54center. Align that to center. Something
  224. 7:57here. All right. Then,
  225. 7:59make sure that we have this selected on
  226. 8:01top of that unselected.
  227. 8:04Align them together. Then, we're going
  228. 8:05to call this group
  229. 8:07women selected.
  230. 8:11Then, we're also going to do the same
  231. 8:12thing here. So, make sure that this is
  232. 8:14on top of that.
  233. 8:15Make sure they're actually aligned
  234. 8:16together.
  235. 8:17And call this group
  236. 8:20men selected. Then, we're going to also
  237. 8:22do the same thing here. Group these.
  238. 8:26Place this on top of that. Align them.
  239. 8:29Give this a group name. Call it
  240. 8:32bicycles selected.
  241. 8:35And lastly,
  242. 8:38place this on top of that.
  243. 8:42Group this.
  244. 8:46Beds selected.
  245. 8:49All right. Now that we're done with
  246. 8:50that, we can actually bring these all
  247. 8:52into the frame.
  248. 8:54So, actually let's rename this.
  249. 8:55Instead of all photos, it's all photos
  250. 8:57selected.
  251. 9:00All right. So, now we actually want to
  252. 9:01align them in a straight line. So,
  253. 9:02select all these
  254. 9:04buttons. So, the menu buttons. Then,
  255. 9:06we're actually going to give them an
  256. 9:07auto layout.
  257. 9:09So, they're actually all in a frame.
  258. 9:10Then, make sure they're actually
  259. 9:12laid out horizontally. Then, we're going
  260. 9:14to space them by Give them a space of
  261. 9:1730.
  262. 9:18There we go.
  263. 9:20Then, drag them all down.
  264. 9:22All right. So, now we have all of them
  265. 9:24laid out horizontally. Then, actually
  266. 9:25make sure that they actually scale them.
  267. 9:28Make sure they're actually at the center
  268. 9:29of the frame. There we go. All right.
  269. 9:31So, next step shall be to rename this
  270. 9:33menu that actually contains this menu.
  271. 9:34We're We're to rename that frame to be
  272. 9:37menu. Let's just create the menu.
  273. 9:39All right. So, now there we go. So, we
  274. 9:40actually now have a frame that controls
  275. 9:42the images and we actually have a frame
  276. 9:44that has the
  277. 9:45menu. So, actually right now we have a
  278. 9:47frame that actually contains the items,
  279. 9:49the images, and then we also have that
  280. 9:51frame that contains the items in the
  281. 9:53menu. So, now next we're going to create
  282. 9:55some variables. So, we're going to
  283. 9:56create variables that actually have the
  284. 9:58Boolean type. So, the first variable is
  285. 10:01one that's going to help us that control
  286. 10:03all the different menus. So, let's have
  287. 10:05one to control the all selected
  288. 10:08menu.
  289. 10:10Let's call it all photos.
  290. 10:16Then we're going to duplicate this.
  291. 10:20I'm going to have one for oceans
  292. 10:22selected.
  293. 10:25Make another one.
  294. 10:27Have one for women selected.
  295. 10:34And so on.
  296. 10:39All right. So, now we actually have now
  297. 10:41a variable to actually represent each of
  298. 10:43the different individual items on the
  299. 10:45menu. So, now we also need to have
  300. 10:47variables that actually control the
  301. 10:48images that actually here on display.
  302. 10:51So, let's create those variables.
  303. 10:53So, we're going to have a variable and
  304. 10:54they're also going to be in this time of
  305. 10:56Boolean. So, let's actually just
  306. 10:57duplicate this. So, we're going to have
  307. 10:58one to represent the oceans images.
  308. 11:03And then let's make one for each kind of
  309. 11:05image.
  310. 11:09All right. So, now we actually now have
  311. 11:10an individual variable for each one. So,
  312. 11:12next we're going to assign the different
  313. 11:13variables.
  314. 11:15All right. So, now we're actually going
  315. 11:16to assign the variables. So, let's start
  316. 11:18with the menu. So, inside the menu we
  317. 11:19actually can see the different items
  318. 11:21that we actually have. So, what we're
  319. 11:22going to do is we want to go inside the
  320. 11:23menu and then we actually going to
  321. 11:25assign the variable to the selected part
  322. 11:27of it. So, let's start with oceans. So,
  323. 11:28make sure you have the selected group.
  324. 11:31And then we're actually going to go to
  325. 11:32we have the pass through. Then, we're
  326. 11:34going to right-click on your mouse, and
  327. 11:36then we're going to assign the menu icon
  328. 11:39for oceans. So, remember we're dealing
  329. 11:40with the oceans menu first. So, we're
  330. 11:42going to click oceans selected.
  331. 11:46So, assign that.
  332. 11:48So, that's oceans selected. So, go to
  333. 11:49the group where you have women. So, go
  334. 11:51to the selected group. Then, we're going
  335. 11:53to also right-click and assign women
  336. 11:55selected.
  337. 11:57Go to the men's group, and also going to
  338. 11:59assign
  339. 12:02men selected.
  340. 12:04And so on.
  341. 12:07And then, lastly, we're going to go to
  342. 12:09where we have the all photos selected.
  343. 12:11So, select the selected group in the all
  344. 12:12photos, and then we're also going to
  345. 12:14assign the all photos selected. So, as
  346. 12:16you can see,
  347. 12:18they've actually all gone off, and that
  348. 12:19is because our variables, by default,
  349. 12:21are actually set to false. So, as you
  350. 12:24can see, actually the items are not
  351. 12:26arranged in the order that I actually
  352. 12:27want. So, I'm actually going to arrange
  353. 12:28them. So, let's make sure that the all
  354. 12:29photos group is actually first on the
  355. 12:31list.
  356. 12:33All right. So, now that we have it
  357. 12:34first, we actually want to make sure
  358. 12:35that all photos is actually selected by
  359. 12:37default. So, actually go to where we
  360. 12:38actually have all the selected, and then
  361. 12:41we're actually going to change this
  362. 12:41variable and make sure that it is set to
  363. 12:43true. So, let's go back to the original.
  364. 12:46So, inside local variables, make sure
  365. 12:47this one is actually set to true. And
  366. 12:50that will actually make sure that it is
  367. 12:51actually by default selected.
  368. 12:54And then, every time we want to actually
  369. 12:56select another item, we should actually
  370. 12:57set it to off. So, that's actually what
  371. 12:59we're going to be doing.
  372. 13:00All right. So, next, we're actually now
  373. 13:01going to also assign the variables that
  374. 13:03actually go with the images. So,
  375. 13:05remember that we actually have variables
  376. 13:07that actually now control the images.
  377. 13:10All right. So, what you're going to do
  378. 13:11is you're going to select all the images
  379. 13:12that actually have the oceans. So,
  380. 13:14select each one, hold control on your
  381. 13:17keyboard to actually make sure you
  382. 13:18select each one. Then, we're actually
  383. 13:20going to go to the pass through, and
  384. 13:21then we're going to assign to them the
  385. 13:24oceans variable. Then, we're also going
  386. 13:26to do the same thing for
  387. 13:27the base scores.
  388. 13:29Make sure they're all selected. Then
  389. 13:31you're also going to assign,
  390. 13:32right-click, and then select base
  391. 13:34scores. Let's go to bird.
  392. 13:37Make sure they're all selected. Assign
  393. 13:40to them the variable for birds. Then
  394. 13:42we're going to go to that of women.
  395. 13:45Then you're also going to assign the
  396. 13:46variable for women. Then lastly, we're
  397. 13:48going to assign the variable of men to
  398. 13:50those
  399. 13:51men.
  400. 13:53Now as you can see, all the images
  401. 13:55actually disappear by default or become
  402. 13:57with opacity zero. And why is that? It's
  403. 13:59because they initially have their
  404. 14:01variables set to false. So we're going
  405. 14:03to actually make sure that variables are
  406. 14:05by default set to true. So make sure
  407. 14:07this is set to true.
  408. 14:11And there we go. So when they're set to
  409. 14:13true, they'll actually appear by
  410. 14:15default.
  411. 14:16All right. So the next step is for us to
  412. 14:18do some prototyping. So let's go to the
  413. 14:19prototype mode. And then now we're
  414. 14:22actually going to Let's close this.
  415. 14:24Let's make sure we go to the menu. Now
  416. 14:26inside the menu, let's first deal with
  417. 14:28what happens when all photos is
  418. 14:30selected. So let's create an interaction
  419. 14:32there. Then we're going to make sure the
  420. 14:33interaction is on click, and we're going
  421. 14:35to add a condition. So inside the
  422. 14:37conditional, now we actually want to set
  423. 14:39some settings. So now the first
  424. 14:40important thing is we want to make sure
  425. 14:42that the variable all photos selected is
  426. 14:45actually
  427. 14:46set on. So I actually have to check for
  428. 14:48that condition. So now this is the
  429. 14:50variable here. So we want to make sure
  430. 14:52that it is actually set on. If this is
  431. 14:55equal to false, we actually want to make
  432. 14:57sure that it is actually turned on. So
  433. 14:59that's actually going to be the first
  434. 15:00important thing. So if it is actually
  435. 15:02set to false, we're going to make sure
  436. 15:03that it will actually be turned on and
  437. 15:05made true. So that's going to be the
  438. 15:07most important first variable. And then
  439. 15:10next after that, once that condition is
  440. 15:12satisfied, we want to make sure that
  441. 15:14in case any of these was actually turned
  442. 15:16on that they actually all set to false.
  443. 15:19So that's also So to be very, very
  444. 15:21important. So we want to make sure that
  445. 15:22all those other variables are set to
  446. 15:24false in case they are actually true. So
  447. 15:27make sure this variable
  448. 15:29ocean selected is set to false
  449. 15:32if it was true. Let's also set another
  450. 15:34variable
  451. 15:36uh women selected. Make sure that is set
  452. 15:38to false.
  453. 15:39That's once this is clicked on.
  454. 15:43Then let's also set another variable.
  455. 15:46Men selected, set that to false.
  456. 15:51Then also going to set the variable for
  457. 15:54uh now I want to make sure that bad
  458. 15:56selected is also set to false.
  459. 16:01That's if it was actually true.
  460. 16:03Then lastly
  461. 16:05I want to make sure that bicycle
  462. 16:06selected is also set to false. This
  463. 16:08actually search for bicycles
  464. 16:11selected. Make sure that is also set to
  465. 16:15false.
  466. 16:17All right. So let's make sure that all
  467. 16:18these uh under this if statement
  468. 16:22so that immediately this is actually
  469. 16:24turned on. So immediately we set all
  470. 16:25photo selected to true, all these others
  471. 16:28actually set to
  472. 16:30false
  473. 16:31by default.
  474. 16:33All right. And then we also want to add
  475. 16:34some other statements also. So I want to
  476. 16:36also make sure that now in this case it
  477. 16:39definitely means that all these should
  478. 16:40actually be put on. So I'm going to add
  479. 16:43variables also. So now I'm going to have
  480. 16:45variables one to represent uh
  481. 16:47the men.
  482. 16:49Let's have one. Let's actually first uh
  483. 16:51close this like that. Let's actually set
  484. 16:53these other variables.
  485. 16:56Close this. Let's make sure these other
  486. 16:58variables are set to true
  487. 17:00in this case.
  488. 17:02So variables representing the images
  489. 17:04should all be set to true when it is on
  490. 17:06all photos.
  491. 17:08So that's oceans, that's women should
  492. 17:11also be set to true.
  493. 17:16Also going to set the variable for men
  494. 17:18to true.
  495. 17:23And so on.
  496. 17:28All right. So, you must make sure that
  497. 17:29all the variables that actually
  498. 17:30represent the images are set to true
  499. 17:32every time we have all photos selected.
  500. 17:35All right. So, now let's also drag
  501. 17:36these. Let them also be under this if
  502. 17:38statement. So, that in case all this
  503. 17:41happens, these are actually all set to
  504. 17:44true in that case. So, now you may not
  505. 17:46be able to see what happens in this case
  506. 17:49until I actually set the next variable.
  507. 17:51So, let's first work on the next
  508. 17:53variable.
  509. 17:55Let's close this.
  510. 17:56Let's go to where we have ocean
  511. 17:57selected. So, what happens when ocean
  512. 17:59here is clicked on? So, let's add an
  513. 18:01interaction. So, it's also going to have
  514. 18:02a condition. So, the condition statement
  515. 18:05shall be we must actually first test
  516. 18:07that this if this was false, it should
  517. 18:09actually be set on So, if ocean selected
  518. 18:11was actually false,
  519. 18:13let's say that if it was actually set to
  520. 18:15false initially, it means that now we're
  521. 18:18actually going to set the variable for
  522. 18:19ocean selected to
  523. 18:21true.
  524. 18:26So, that's going to be very, very
  525. 18:27important. So, this should actually be
  526. 18:28set to true if it was actually false
  527. 18:31initially. And then next we're actually
  528. 18:33going to have to make sure that all
  529. 18:34these others are actually set off. So,
  530. 18:36this, this, this, and
  531. 18:38that should actually all be off. So,
  532. 18:40make sure that all the other selections
  533. 18:42are actually off when ocean is selected.
  534. 18:44So, all photo selected should actually
  535. 18:46be set to false
  536. 18:48when we have ocean selected.
  537. 18:50Let's actually work on all those
  538. 18:52individual variables for
  539. 18:54selected.
  540. 18:56Sorry. So, this is wrong. So, let's add
  541. 18:58variable actually. So, this variable for
  542. 19:01women selected should actually be set to
  543. 19:03false.
  544. 19:05And so on.
  545. 19:10All right. So, we have to make sure that
  546. 19:11all the selections, all the other
  547. 19:12selections apart from oceans are set to
  548. 19:15false in that case. So, in this case, if
  549. 19:18this was true, oceans will be set to
  550. 19:20true and all these others will be set to
  551. 19:22false. Let's make sure they're all under
  552. 19:23that if statement.
  553. 19:28All right, and then lastly, we want to
  554. 19:30make sure that also in the images, we
  555. 19:32want to make sure that only the photos
  556. 19:34that actually have oceans actually
  557. 19:35remain selected. So, only ocean photos
  558. 19:39should actually remain in true and all
  559. 19:40the other photos should actually be set
  560. 19:42to false. Let's also work on those
  561. 19:43variables. So, we want to set those
  562. 19:45variables for the images.
  563. 19:49So, let's have variable for oceans shall
  564. 19:51be set to true.
  565. 19:53Then let's set the other variables of
  566. 19:55the images to
  567. 19:59Let's set the other variables of the
  568. 20:00images to false. So, women shall
  569. 20:03actually be set to false.
  570. 20:06And likewise to the other variables.
  571. 20:11All right, so now we've actually set all
  572. 20:13the other variables. So, all the other
  573. 20:14images are set to false except oceans
  574. 20:17that actually left as true. So, let's
  575. 20:19see what happens. But before we do that,
  576. 20:21let's actually make sure that all these
  577. 20:23are under the if statement. So, let's
  578. 20:25drag them in.
  579. 20:30All right, so let's actually test what
  580. 20:31happens in this case. So, let's preview
  581. 20:34that. So, as you can see, when all
  582. 20:36photos is selected, this is what we
  583. 20:38have. So, when I go to oceans, you guys
  584. 20:39should see that only the photos that
  585. 20:41actually have oceans remain selected.
  586. 20:43And as you can see, all the others
  587. 20:46actually deselected. So, all photos
  588. 20:47becomes deselected when you actually
  589. 20:49click on this. So, this actually becomes
  590. 20:51false when you actually click on this.
  591. 20:53And then when you go back, you can
  592. 20:54actually see what
  593. 20:55happens. Now, all these others are not
  594. 20:58yet set on, so we're actually going to
  595. 20:59have to work on them also. But as you
  596. 21:01can see, it's actually working.
  597. 21:05Let's go to women selected and then we
  598. 21:06also want to add an interaction.
  599. 21:12Let's add a conditional. So, we must
  600. 21:14first make sure to test that if women
  601. 21:16selected is actually false,
  602. 21:19it should actually be set to true.
  603. 21:21So, that's going to be the first thing.
  604. 21:24So, once that happens, we can actually
  605. 21:26set the variable for women to true.
  606. 21:30And then all the other variables for the
  607. 21:32selections on the menu should actually
  608. 21:34be set to false.
  609. 21:41All right, so let's drag this in.
  610. 21:56Then lastly, now we also have to make
  611. 21:57sure only the images that actually have
  612. 21:59women are actually set to true.
  613. 22:03So, let's work on the variables for the
  614. 22:05images.
  615. 22:12So, as you can see, all the other
  616. 22:13variables for images are set to false
  617. 22:15except that for women which is actually
  618. 22:17set to true. So, let's make sure that
  619. 22:18they're all under the if statement.
  620. 22:29Then let's test this.
  621. 22:33All right, so as you can see, when I
  622. 22:35select the women, you can actually see
  623. 22:36only the women's images actually set on.
  624. 22:39And that's actually what happened. So,
  625. 22:41you can actually work on So, I'm going
  626. 22:43to quickly work on all the others while
  627. 22:45doing and following the same procedures.
  628. 23:37All right, so lastly we've set that for
  629. 23:38the birds and we finally set that to the
  630. 23:41right conditions. So let's actually test
  631. 23:43that.
  632. 23:46Now let's see that in the prototype
  633. 23:48preview. And as you can see when I click
  634. 23:51on oceans, when I click on women, when I
  635. 23:52click on men, bicycles,
  636. 23:55and the birds you can actually see all
  637. 23:56the changes. So now this is a very much
  638. 23:58working filterable gallery just as we
  639. 24:01actually wanted. So if you followed
  640. 24:03through this video, I hope the video
  641. 24:05really helped you helped you understand
  642. 24:07all these things further. I know it's a
  643. 24:09little bit complex, but I believe that
  644. 24:11as you practice you'll actually get
  645. 24:12better in understanding how to work with
  646. 24:15variables. I hope this video really
  647. 24:16helped you. If it did, feel free to give
  648. 24:17the video a thumbs up and then if you're
  649. 24:19new to this channel, I encourage you
  650. 24:21join the community by subscribing. And
  651. 24:23then make sure to hit the notification
  652. 24:24bell so that you're updated every single
  653. 24:26time I upload a new video. Thank you so
  654. 24:28much for watching. I'll see you all in
  655. 24:29the next video.
  656. 24:31Bye.

About this transcript

This page contains the full transcript of Filterable Image Gallery With Variables In Figma | 2024 by Emmanuel’s Design Lab, generated from the public captions YouTube serves with the video. The transcript has 4,101 words across 656 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.