Changes for page Presentation Test Page

Last modified by Erik Bakker on 2024/07/30 14:39

From version 38.1
edited by Erik Bakker
on 2024/07/30 14:22
Change comment: There is no comment for this version
To version 40.1
edited by Erik Bakker
on 2024/07/30 14:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -43,44 +43,40 @@
43 43  == Current slide ==
44 44  
45 45  {{html}}
46 -<html lang="en">
47 - <head>
48 - <meta charset="utf-8">
49 - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
50 -
51 - <title>reveal.js</title>
52 -
53 - <link rel="stylesheet" href="dist/reset.css">
54 - <link rel="stylesheet" href="dist/reveal.css">
55 - <link rel="stylesheet" href="dist/theme/black.css">
56 -
57 - <!-- Theme used for syntax highlighted code -->
58 - <link rel="stylesheet" href="plugin/highlight/monokai.css">
59 - </head>
60 - <body>
61 - <div class="reveal">
62 - <div class="slides">
63 - <section>Slide 1</section>
64 - <section>Slide 2</section>
65 - </div>
66 - </div>
67 -
68 - <script src="dist/reveal.js"></script>
69 - <script src="plugin/notes/notes.js"></script>
70 - <script src="plugin/markdown/markdown.js"></script>
71 - <script src="plugin/highlight/highlight.js"></script>
72 - <script>
73 - // More info about initialization & config:
74 - // - https://revealjs.com/initialization/
75 - // - https://revealjs.com/config/
76 - Reveal.initialize({
77 - hash: true,
78 -
79 - // Learn about plugins: https://revealjs.com/plugins/
80 - plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
81 - });
82 - </script>
83 - </body>
46 +<html>
47 +<body>
48 +
49 + <!-- Define the slideshow container -->
50 + <div id="slideshow">
51 + <div class="slide-wrapper">
52 +
53 + <!-- Define each of the slides
54 + and write the content -->
55 +
56 + <div class="slide">
57 + <h1 class="slide-number">
58 + GeeksforGeeks
59 + </h1>
60 + </div>
61 + <div class="slide">
62 + <h1 class="slide-number">
63 + A computer science portal
64 + </h1>
65 + </div>
66 + <div class="slide">
67 + <h1 class="slide-number">
68 + This is an example of
69 + </h1>
70 + </div>
71 + <div class="slide">
72 + <h1 class="slide-number">
73 + Slideshow with HTML and CSS only
74 + </h1>
75 + </div>
76 + </div>
77 + </div>
78 +</body>
79 +
84 84  </html>
85 85  
86 86  {{/html}}
XWiki.StyleSheetExtension[0]
Code
... ... @@ -1,0 +1,68 @@
1 +/* Styling the area of the slides */
2 +#slideshow {
3 + overflow: hidden;
4 + height: 510px;
5 + width: 728px;
6 + margin: 0 auto;
7 +}
8 +
9 +/* Style each of the sides
10 + with a fixed width and height */
11 +.slide {
12 + float: left;
13 + height: 510px;
14 + width: 728px;
15 +}
16 +
17 +/* Add animation to the slides */
18 +.slide-wrapper {
19 +
20 + /* Calculate the total width on the
21 + basis of number of slides */
22 + width: calc(728px * 4);
23 +
24 + /* Specify the animation with the
25 + duration and speed */
26 + animation: slide 10s ease infinite;
27 +}
28 +
29 +/* Set the background color
30 + of each of the slides */
31 +.slide:nth-child(1) {
32 + background: green;
33 +}
34 +
35 +.slide:nth-child(2) {
36 + background: pink;
37 +}
38 +
39 +.slide:nth-child(3) {
40 + background: red;
41 +}
42 +
43 +.slide:nth-child(4) {
44 + background: yellow;
45 +}
46 +
47 +/* Define the animation
48 + for the slideshow */
49 +@keyframes slide {
50 +
51 + /* Calculate the margin-left for
52 + each of the slides */
53 + 20% {
54 + margin-left: 0px;
55 + }
56 +
57 + 40% {
58 + margin-left: calc(-728px * 1);
59 + }
60 +
61 + 60% {
62 + margin-left: calc(-728px * 2);
63 + }
64 +
65 + 80% {
66 + margin-left: calc(-728px * 3);
67 + }
68 +}