function LoadImage($chat) { foreach(simplexml_load_string(Listener::$Data)->results->size as $photo) { $url = $photo['source']; $chat->Controls->Add($image = new Image((string)$url, rand(0, $chat->Width), rand(0, 200), 100, 100)); Animate::Top($image, $chat->Height - $image->Height, 3000); Animate::Opacity($image, Animate::Oblivion, 3000); } }
<?php Route::get(Config::get('animate::config.custom_classes_stylesheet_url'), function () { return Response::make(Animate::generateCSS(), 200, ['Content-Type' => 'text/css; charset: UTF-8']); });
function SlideContent() { $selectedPosition = $this->Slides->SelectedPosition; $animateLeft = $selectedPosition > $this->PrevIndex; if(isset($this->Slides[$this->PrevIndex])) { $slide = $this->Slides[$this->PrevIndex]; $to = $animateLeft?(-1 * $slide->Width):($slide->Width); Animate::Left($slide, $to, 500, Animate::Quadratic, null, 45); if($slide->AnimationStop->Blank()) $slide->AnimationStop = new ClientEvent('ToggleVisibility', $slide); $slide->AnimationStop->Enabled = true; } if($slide = $this->Slides->SelectedElement) { $slide->Visible = true; if($this->PrevIndex !== null) { $slide->Left = $animateLeft?$slide->Width:(-1 * $slide->Width); Animate::Left($slide, 0, 500, Animate::Quadratic, null, 45); $slide->AnimationStop->Enabled = false; } $this->PrevIndex = $this->Slides->SelectedIndex; } }